mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
Fix -1 is displayed instead of C_INFINITY symbol
This commit is contained in:
committed by
sledgehammer999
parent
c1e52fa1cd
commit
c2c441ed08
@@ -400,8 +400,8 @@ void PropertiesWidget::loadDynamicData() {
|
|||||||
lbl_elapsed->setText(elapsed_txt);
|
lbl_elapsed->setText(elapsed_txt);
|
||||||
|
|
||||||
lbl_connections->setText(tr("%1 (%2 max)", "%1 and %2 are numbers, e.g. 3 (10 max)")
|
lbl_connections->setText(tr("%1 (%2 max)", "%1 and %2 are numbers, e.g. 3 (10 max)")
|
||||||
.arg(m_torrent->connectionsCount() < 0 ? QString::fromUtf8(C_INFINITY) : QString::number(m_torrent->connectionsCount()))
|
.arg(m_torrent->connectionsCount())
|
||||||
.arg(QString::number(m_torrent->connectionsLimit())));
|
.arg(m_torrent->connectionsLimit() < 0 ? QString::fromUtf8(C_INFINITY) : QString::number(m_torrent->connectionsLimit())));
|
||||||
|
|
||||||
label_eta_val->setText(Utils::Misc::userFriendlyDuration(m_torrent->eta()));
|
label_eta_val->setText(Utils::Misc::userFriendlyDuration(m_torrent->eta()));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user