From 58dc75fbcfc7812c8c43a0887e8af19f04b48024 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Tue, 31 Jul 2007 14:28:17 +0000 Subject: [PATCH] - Fixed some slots connects in new deleteThread - Added some debug when pausing torrents --- src/bittorrent.cpp | 6 +++++- src/deleteThread.h | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index db9b2c3ca..068acaeb0 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -200,7 +200,11 @@ bool bittorrent::pauseTorrent(QString hash){ change = true; qDebug("Torrent paused successfully"); }else{ - qDebug("Could not pause torrent, invalid or already paused."); + if(!h.is_valid()){ + qDebug("Could not pause torrent %s, reason: invalid", (const char*)hash.toUtf8()); + }else{ + qDebug("Could not pause torrent %s, reason: already paused", (const char*)hash.toUtf8()); + } } // Create .paused file if necessary if(!QFile::exists(misc::qBittorrentPath()+"BT_backup"+QDir::separator()+hash+".paused")){ diff --git a/src/deleteThread.h b/src/deleteThread.h index 11dbbbd84..9b0dcb36a 100644 --- a/src/deleteThread.h +++ b/src/deleteThread.h @@ -112,8 +112,8 @@ class deleteThread : public QThread { mutex.unlock(); subDeleteThread *st = new subDeleteThread(0, path); subThreads << st; - connect(st, SIGNAL(deletionSuccessST(subDownloadThread*, QString, QString)), this, SLOT(propagateDeletionSuccess(subDeleteThread*, QString))); - connect(st, SIGNAL(deletionFailureST(subDownloadThread*, QString, QString)), this, SLOT(propagateDeletionFailure(subDeleteThread*, QString))); + connect(st, SIGNAL(deletionSuccessST(subDownloadThread*, QString)), this, SLOT(propagateDeletionSuccess(subDeleteThread*, QString))); + connect(st, SIGNAL(deletionFailureST(subDownloadThread*, QString)), this, SLOT(propagateDeletionFailure(subDeleteThread*, QString))); st->start(); }else{ condition.wait(&mutex);