|
|
@ -1113,16 +1113,17 @@ void GUI::configureSession(bool deleteOptions) { |
|
|
|
// Queueing System
|
|
|
|
// Queueing System
|
|
|
|
if(options->isQueueingSystemEnabled()) { |
|
|
|
if(options->isQueueingSystemEnabled()) { |
|
|
|
if(!BTSession->isQueueingEnabled()) { |
|
|
|
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); |
|
|
|
downloadingTorrentTab->hidePriorityColumn(false); |
|
|
|
finishedTorrentTab->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 { |
|
|
|
} else { |
|
|
|
if(BTSession->isQueueingEnabled()) { |
|
|
|
if(BTSession->isQueueingEnabled()) { |
|
|
|
BTSession->setQueueingEnabled(false); |
|
|
|
BTSession->setQueueingEnabled(false); |
|
|
|