Browse Source

- Removed some debug

- Bug fix when applying preferences (queueing)
adaptive-webui-19844
Christophe Dumez 17 years ago
parent
commit
4be0cbd2e4
  1. 15
      src/GUI.cpp
  2. 1
      src/bittorrent.cpp

15
src/GUI.cpp

@ -1113,16 +1113,17 @@ void GUI::configureSession(bool deleteOptions) { @@ -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);

1
src/bittorrent.cpp

@ -345,7 +345,6 @@ int bittorrent::getDlTorrentPriority(QString hash) const { @@ -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);
}

Loading…
Cancel
Save