mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
- Sync with stable branch (lot of bug fixing)
This commit is contained in:
22
src/GUI.cpp
22
src/GUI.cpp
@@ -125,7 +125,6 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent), dis
|
||||
BTSession = new bittorrent();
|
||||
connect(BTSession, SIGNAL(fullDiskError(QTorrentHandle&)), this, SLOT(fullDiskError(QTorrentHandle&)));
|
||||
connect(BTSession, SIGNAL(finishedTorrent(QTorrentHandle&)), this, SLOT(finishedTorrent(QTorrentHandle&)));
|
||||
connect(BTSession, SIGNAL(torrentFinishedChecking(QString)), this, SLOT(torrentChecked(QString)));
|
||||
connect(BTSession, SIGNAL(trackerAuthenticationRequired(QTorrentHandle&)), this, SLOT(trackerAuthenticationRequired(QTorrentHandle&)));
|
||||
connect(BTSession, SIGNAL(scanDirFoundTorrents(const QStringList&)), this, SLOT(processScannedFiles(const QStringList&)));
|
||||
connect(BTSession, SIGNAL(newDownloadedTorrent(QString, QString)), this, SLOT(processDownloadedFiles(QString, QString)));
|
||||
@@ -338,27 +337,6 @@ void GUI::writeSettings() {
|
||||
settings.endGroup();
|
||||
}
|
||||
|
||||
// Called when a torrent finished checking
|
||||
void GUI::torrentChecked(QString hash) const {
|
||||
// Check if the torrent was paused after checking
|
||||
if(BTSession->isPaused(hash)) {
|
||||
// Was paused, change its icon/color
|
||||
if(BTSession->isFinished(hash)) {
|
||||
// In finished list
|
||||
qDebug("Automatically paused torrent was in finished list");
|
||||
finishedTorrentTab->pauseTorrent(hash);
|
||||
}else{
|
||||
// In download list
|
||||
downloadingTorrentTab->pauseTorrent(hash);
|
||||
}
|
||||
}
|
||||
if(!BTSession->isFinished(hash)){
|
||||
// Delayed Sorting
|
||||
downloadingTorrentTab->updateFileSizeAndProgress(hash);
|
||||
downloadingTorrentTab->sortProgressColumnDelayed();
|
||||
}
|
||||
}
|
||||
|
||||
// called when a torrent has finished
|
||||
void GUI::finishedTorrent(QTorrentHandle& h) const {
|
||||
qDebug("In GUI, a torrent has finished");
|
||||
|
||||
Reference in New Issue
Block a user