From 4be0cbd2e42f26733b01ab39485e59f0a581f018 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Tue, 15 Jul 2008 18:18:59 +0000 Subject: [PATCH] - Removed some debug - Bug fix when applying preferences (queueing) --- src/GUI.cpp | 15 ++++++++------- src/bittorrent.cpp | 1 - 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/GUI.cpp b/src/GUI.cpp index ce1cd0b58..f891a983e 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -1113,16 +1113,17 @@ void GUI::configureSession(bool deleteOptions) { // Queueing System if(options->isQueueingSystemEnabled()) { if(!BTSession->isQueueingEnabled()) { - int max_torrents = options->getMaxActiveTorrents(); - int max_downloads = options->getMaxActiveDownloads(); - if(max_torrents < max_downloads) - max_torrents = max_downloads; - BTSession->setMaxActiveTorrents(max_torrents); - BTSession->setMaxActiveDownloads(max_downloads); - BTSession->setQueueingEnabled(true); downloadingTorrentTab->hidePriorityColumn(false); finishedTorrentTab->hidePriorityColumn(false); } + int max_torrents = options->getMaxActiveTorrents(); + int max_downloads = options->getMaxActiveDownloads(); + if(max_torrents < max_downloads) + max_torrents = max_downloads; + BTSession->setMaxActiveTorrents(max_torrents); + BTSession->setMaxActiveDownloads(max_downloads); + BTSession->setQueueingEnabled(true); + } } else { if(BTSession->isQueueingEnabled()) { BTSession->setQueueingEnabled(false); diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index e816ce9bc..038c2ff76 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -345,7 +345,6 @@ int bittorrent::getDlTorrentPriority(QString hash) const { int bittorrent::getUpTorrentPriority(QString hash) const { Q_ASSERT(uploadQueue != 0); - qDebug("priority: %d", uploadQueue->indexOf(hash)); return uploadQueue->indexOf(hash); }