diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index 8086b02c7..46d689607 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -2274,10 +2274,7 @@ void Bittorrent::addConsoleMessage(QString msg, QString) { torrent_queue.push(qMakePair(prio, hash)); } // Resume downloads - int prio = -1; while(!torrent_queue.empty()) { - int new_prio = torrent_queue.top().first; - Q_ASSERT(new_prio >= prio); const QString &hash = torrent_queue.top().second; torrent_queue.pop(); qDebug("Starting up torrent %s", qPrintable(hash)); diff --git a/src/main.cpp b/src/main.cpp index d32e4256c..238aa5256 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -36,6 +36,7 @@ #include #include #include +#include #include #include #include "GUI.h"