From 816a3c8784818d7b81a4687d53d673d9882683d4 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Tue, 31 Jul 2007 08:56:24 +0000 Subject: [PATCH] - Paused torrents are displayed as paused, even if they are checking (to display their progress). This is less confusing. --- src/GUI.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/GUI.cpp b/src/GUI.cpp index 4457ffe40..48cff6c46 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -1155,7 +1155,8 @@ void GUI::torrentAdded(QString path, torrent_handle& h, bool fastResume){ DLListModel->setData(DLListModel->index(row, ETA), QVariant((qlonglong)-1)); DLListModel->setData(DLListModel->index(row, HASH), QVariant(hash)); // Pause torrent if it was paused last time - if(BTSession->isPaused(hash)) { + // Not using isPaused function because torrents are paused after checking now + if(QFile::exists(misc::qBittorrentPath()+"BT_backup"+QDir::separator()+hash+".paused")) { DLListModel->setData(DLListModel->index(row, NAME), QVariant(QIcon(":/Icons/skin/paused.png")), Qt::DecorationRole); setRowColor(row, "red"); }else{