mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06:00
- Added some more debug in pause function
This commit is contained in:
@@ -198,6 +198,9 @@ void bittorrent::pauseTorrent(QString hash){
|
|||||||
QFile paused_file(misc::qBittorrentPath()+"BT_backup"+QDir::separator()+hash+".paused");
|
QFile paused_file(misc::qBittorrentPath()+"BT_backup"+QDir::separator()+hash+".paused");
|
||||||
paused_file.open(QIODevice::WriteOnly | QIODevice::Text);
|
paused_file.open(QIODevice::WriteOnly | QIODevice::Text);
|
||||||
paused_file.close();
|
paused_file.close();
|
||||||
|
qDebug("Torrent paused successfully");
|
||||||
|
}else{
|
||||||
|
qDebug("Could not pause torrent, invalid or already paused.");
|
||||||
}
|
}
|
||||||
int index = torrentsToPauseAfterChecking.indexOf(hash);
|
int index = torrentsToPauseAfterChecking.indexOf(hash);
|
||||||
if(index != -1) {
|
if(index != -1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user