mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-27 08:19:30 +08:00
- Fixed some slots connects in new deleteThread
- Added some debug when pausing torrents
This commit is contained in:
parent
d04b9a7f02
commit
58dc75fbcf
@ -200,7 +200,11 @@ bool bittorrent::pauseTorrent(QString hash){
|
|||||||
change = true;
|
change = true;
|
||||||
qDebug("Torrent paused successfully");
|
qDebug("Torrent paused successfully");
|
||||||
}else{
|
}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
|
// Create .paused file if necessary
|
||||||
if(!QFile::exists(misc::qBittorrentPath()+"BT_backup"+QDir::separator()+hash+".paused")){
|
if(!QFile::exists(misc::qBittorrentPath()+"BT_backup"+QDir::separator()+hash+".paused")){
|
||||||
|
@ -112,8 +112,8 @@ class deleteThread : public QThread {
|
|||||||
mutex.unlock();
|
mutex.unlock();
|
||||||
subDeleteThread *st = new subDeleteThread(0, path);
|
subDeleteThread *st = new subDeleteThread(0, path);
|
||||||
subThreads << st;
|
subThreads << st;
|
||||||
connect(st, SIGNAL(deletionSuccessST(subDownloadThread*, QString, QString)), this, SLOT(propagateDeletionSuccess(subDeleteThread*, QString)));
|
connect(st, SIGNAL(deletionSuccessST(subDownloadThread*, QString)), this, SLOT(propagateDeletionSuccess(subDeleteThread*, QString)));
|
||||||
connect(st, SIGNAL(deletionFailureST(subDownloadThread*, QString, QString)), this, SLOT(propagateDeletionFailure(subDeleteThread*, QString)));
|
connect(st, SIGNAL(deletionFailureST(subDownloadThread*, QString)), this, SLOT(propagateDeletionFailure(subDeleteThread*, QString)));
|
||||||
st->start();
|
st->start();
|
||||||
}else{
|
}else{
|
||||||
condition.wait(&mutex);
|
condition.wait(&mutex);
|
||||||
|
Loading…
Reference in New Issue
Block a user