mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-26 06:25:27 +00:00
Relax comparsion for floating point
This commit is contained in:
parent
59556dfc6a
commit
a86f189f53
@ -93,7 +93,7 @@ public:
|
||||
case DOWN_SPEED:
|
||||
case UP_SPEED:{
|
||||
qreal speed = index.data().toDouble();
|
||||
if (speed == 0.0)
|
||||
if (speed <= 0.0)
|
||||
break;
|
||||
opt.displayAlignment = Qt::AlignRight | Qt::AlignVCenter;
|
||||
QItemDelegate::drawDisplay(painter, opt, opt.rect, Utils::Misc::friendlyUnit(speed, true));
|
||||
|
Loading…
x
Reference in New Issue
Block a user