From 099943ea3c0a61b09b03c4d2bbbfcb2f694f4b40 Mon Sep 17 00:00:00 2001 From: "Vladimir Golovnev (Glassez)" Date: Thu, 23 Jan 2020 08:19:39 +0300 Subject: [PATCH] Fix hide zero values --- src/gui/transferlistmodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/transferlistmodel.cpp b/src/gui/transferlistmodel.cpp index 0d1fda9e5..244fdffe5 100644 --- a/src/gui/transferlistmodel.cpp +++ b/src/gui/transferlistmodel.cpp @@ -205,8 +205,8 @@ QVariant TransferListModel::headerData(int section, Qt::Orientation orientation, QString TransferListModel::displayValue(const BitTorrent::TorrentHandle *torrent, const int column) const { - const bool isHideState = (Preferences::instance()->getHideZeroComboValues() == 1) - && (torrent->state() == BitTorrent::TorrentState::PausedDownloading); // paused torrents only + const bool isHideState = (Preferences::instance()->getHideZeroComboValues() == 0) + || (torrent->state() == BitTorrent::TorrentState::PausedDownloading); // paused torrents only const bool hideValues = Preferences::instance()->getHideZeroValues() && isHideState; const auto availabilityString = [hideValues](const qreal value) -> QString