From 430c7d2deb8fabd341742959430cdb7a709a1cef Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Mon, 5 Apr 2010 20:11:27 +0000 Subject: [PATCH] BUGFIX: Display correct share ratio for paused torrents --- Changelog | 1 + src/transferlistwidget.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/Changelog b/Changelog index 7f7ba942c..cd0b65977 100644 --- a/Changelog +++ b/Changelog @@ -3,6 +3,7 @@ - BUGFIX: Fix torrent addition window layout (torrent content not expanding) - BUGFIX: Fix about dialog in Web UI - BUGFIX: Correctly clear trackers error messages once they work + - BUGFIX: Display correct share ratio for paused torrents * Sun Apr 04 2010 - Christophe Dumez - v2.2.3 - BUGFIX: Fix possible crash when deleting a torrent just after pausing it diff --git a/src/transferlistwidget.cpp b/src/transferlistwidget.cpp index c3d51a47e..9e50dc4e1 100644 --- a/src/transferlistwidget.cpp +++ b/src/transferlistwidget.cpp @@ -174,6 +174,7 @@ void TransferListWidget::addTorrent(QTorrentHandle& h) { listModel->setData(listModel->index(row, TR_SEED_DATE), QVariant(TorrentPersistentData::getSeedDate(h.hash()))); listModel->setData(listModel->index(row, TR_UPLIMIT), QVariant(h.upload_limit())); listModel->setData(listModel->index(row, TR_DLLIMIT), QVariant(h.download_limit())); + listModel->setData(listModel->index(row, TR_RATIO), QVariant(BTSession->getRealRatio(h.hash()))); const QString &label = TorrentPersistentData::getLabel(h.hash()); listModel->setData(listModel->index(row, TR_LABEL), QVariant(label)); if(BTSession->isQueueingEnabled())