Browse Source

Fix wrong "Time Active" value displayed

Closes #9612.
adaptive-webui-19844
Chocobo1 5 years ago
parent
commit
1de4c2497c
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 4
      src/gui/transferlistdelegate.cpp

4
src/gui/transferlistdelegate.cpp

@ -121,8 +121,8 @@ void TransferListDelegate::paint(QPainter *painter, const QStyleOptionViewItem &
} }
break; break;
case TransferListModel::TR_TIME_ELAPSED: { case TransferListModel::TR_TIME_ELAPSED: {
const int elapsedTime = index.data().toInt(); const qlonglong elapsedTime = index.data().toLongLong();
const int seedingTime = index.data(Qt::UserRole).toInt(); const qlonglong seedingTime = index.data(Qt::UserRole).toLongLong();
const QString txt = (seedingTime > 0) const QString txt = (seedingTime > 0)
? tr("%1 (seeded for %2)", "e.g. 4m39s (seeded for 3m10s)") ? tr("%1 (seeded for %2)", "e.g. 4m39s (seeded for 3m10s)")
.arg(Utils::Misc::userFriendlyDuration(elapsedTime) .arg(Utils::Misc::userFriendlyDuration(elapsedTime)

Loading…
Cancel
Save