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
1 changed files with 1 additions and 1 deletions

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;