From a86f189f5336080c754a2b64a5340bc8cf36ed04 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Wed, 5 Apr 2017 15:03:14 +0800 Subject: [PATCH] Relax comparsion for floating point --- src/gui/properties/peerlistdelegate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/properties/peerlistdelegate.h b/src/gui/properties/peerlistdelegate.h index fe2ec9b3b..f883123d7 100644 --- a/src/gui/properties/peerlistdelegate.h +++ b/src/gui/properties/peerlistdelegate.h @@ -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));