in Torrent::setDouble(), don't compare doubles directly as a bool
This commit is contained in:
parent
9f74cf2273
commit
1b67e9b266
|
@ -194,7 +194,7 @@ Torrent::setDouble (int i, double value)
|
|||
assert (0<=i && i<PROPERTY_COUNT);
|
||||
assert (myProperties[i].type == QVariant::Double);
|
||||
|
||||
if (myValues[i].isNull() || myValues[i].toDouble()!=value)
|
||||
if (myValues[i] != value)
|
||||
{
|
||||
myValues[i].setValue (value);
|
||||
changed = true;
|
||||
|
|
Loading…
Reference in New Issue