From c3abdc374336160e47cee091846169363ad74cbb Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 11 Mar 2007 18:08:34 +0000 Subject: [PATCH] - Set the number of seeds/leechs to 0/0 when pausing torrents --- src/GUI.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/GUI.cpp b/src/GUI.cpp index a83d2a8b1..503bca9d5 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -1251,6 +1251,7 @@ void GUI::pauseAll(){ DLListModel->setData(DLListModel->index(i, STATUS), QVariant(tr("Paused"))); DLListModel->setData(DLListModel->index(i, ETA), QVariant((qlonglong)-1)); DLListModel->setData(DLListModel->index(i, NAME), QVariant(QIcon(":/Icons/skin/paused.png")), Qt::DecorationRole); + DLListModel->setData(DLListModel->index(i, SEEDSLEECH), QVariant("0/0")); setRowColor(i, "red"); setInfoBar(tr("All downloads were paused.")); } @@ -1275,6 +1276,7 @@ void GUI::pauseSelection(){ DLListModel->setData(DLListModel->index(row, ETA), QVariant((qlonglong)-1)); setInfoBar(tr("'%1' paused.", "xxx.avi paused.").arg(QString(BTSession.getTorrentHandle(fileHash).name().c_str()))); DLListModel->setData(DLListModel->index(row, NAME), QIcon(":/Icons/skin/paused.png"), Qt::DecorationRole); + DLListModel->setData(DLListModel->index(row, SEEDSLEECH), QVariant("0/0")); setRowColor(row, "red"); } }