Browse Source

- Queueing system fixes

adaptive-webui-19844
Christophe Dumez 16 years ago
parent
commit
71a81fd1b7
  1. 3
      src/bittorrent.cpp

3
src/bittorrent.cpp

@ -314,6 +314,7 @@ void bittorrent::startTorrentsInPause(bool b) {
void bittorrent::setQueueingEnabled(bool enable) { void bittorrent::setQueueingEnabled(bool enable) {
if(queueingEnabled != enable) { if(queueingEnabled != enable) {
qDebug("Queueing system is changing state...");
queueingEnabled = enable; queueingEnabled = enable;
if(enable) { if(enable) {
// Load priorities // Load priorities
@ -358,7 +359,7 @@ void bittorrent::setQueueingEnabled(bool enable) {
foreach(couple2, tmp_list2) { foreach(couple2, tmp_list2) {
uploadQueue->append(couple2.second); uploadQueue->append(couple2.second);
} }
(*uploadQueue)<<noprio; (*uploadQueue)<<noprio2;
// save priorities // save priorities
int j=0; int j=0;
foreach(QString hash, *uploadQueue) { foreach(QString hash, *uploadQueue) {

Loading…
Cancel
Save