mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
Relax comparsion for floating point
This commit is contained in:
@@ -93,7 +93,7 @@ public:
|
|||||||
case DOWN_SPEED:
|
case DOWN_SPEED:
|
||||||
case UP_SPEED:{
|
case UP_SPEED:{
|
||||||
qreal speed = index.data().toDouble();
|
qreal speed = index.data().toDouble();
|
||||||
if (speed == 0.0)
|
if (speed <= 0.0)
|
||||||
break;
|
break;
|
||||||
opt.displayAlignment = Qt::AlignRight | Qt::AlignVCenter;
|
opt.displayAlignment = Qt::AlignRight | Qt::AlignVCenter;
|
||||||
QItemDelegate::drawDisplay(painter, opt, opt.rect, Utils::Misc::friendlyUnit(speed, true));
|
QItemDelegate::drawDisplay(painter, opt, opt.rect, Utils::Misc::friendlyUnit(speed, true));
|
||||||
|
|||||||
Reference in New Issue
Block a user