1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-01-31 03:12:44 +00:00

in Torrent::setDouble(), don't compare doubles directly as a bool

This commit is contained in:
Jordan Lee 2015-12-06 18:02:37 +00:00
parent 9f74cf2273
commit 1b67e9b266

View file

@ -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;