From 2aeb8b93904d59c849ffb8754393fb56ba435530 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sat, 6 Feb 2021 11:49:04 +0800 Subject: [PATCH] Apply "Hide infinity values" to "Down/Up Limit" columns --- src/gui/transferlistmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/transferlistmodel.cpp b/src/gui/transferlistmodel.cpp index 7dcccd1fe..ec1e6c3ff 100644 --- a/src/gui/transferlistmodel.cpp +++ b/src/gui/transferlistmodel.cpp @@ -259,7 +259,7 @@ QString TransferListModel::displayValue(const BitTorrent::Torrent *torrent, cons const auto limitString = [hideValues](const qint64 value) -> QString { - if (hideValues && (value == 0)) + if (hideValues && (value <= 0)) return {}; return (value > 0)