mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 06:01:33 -06:00
Relax comparsion for floating point
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user