mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-07 13:41:26 -07:00
Show "last activity" value under all circumstances
This commit is contained in:
parent
a4ce5d1687
commit
6864e13e6f
2 changed files with 3 additions and 10 deletions
|
@ -403,7 +403,7 @@ QString TransferListModel::displayValue(const BitTorrent::Torrent *torrent, cons
|
|||
case TR_SEEN_COMPLETE_DATE:
|
||||
return QLocale().toString(torrent->lastSeenComplete().toLocalTime(), QLocale::ShortFormat);
|
||||
case TR_LAST_ACTIVITY:
|
||||
return lastActivityString((torrent->isPaused() || torrent->isChecking()) ? -1 : torrent->timeSinceActivity());
|
||||
return lastActivityString(torrent->timeSinceActivity());
|
||||
case TR_AVAILABILITY:
|
||||
return availabilityString(torrent->distributedCopies());
|
||||
case TR_TOTAL_SIZE:
|
||||
|
@ -474,7 +474,7 @@ QVariant TransferListModel::internalValue(const BitTorrent::Torrent *torrent, co
|
|||
case TR_SEEN_COMPLETE_DATE:
|
||||
return torrent->lastSeenComplete();
|
||||
case TR_LAST_ACTIVITY:
|
||||
return (torrent->isPaused() || torrent->isChecking()) ? -1 : torrent->timeSinceActivity();
|
||||
return torrent->timeSinceActivity();
|
||||
case TR_AVAILABILITY:
|
||||
return torrent->distributedCopies();
|
||||
case TR_TOTAL_SIZE:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue