Browse Source

Remove unnecessary code from qbtsession.

adaptive-webui-19844
sledgehammer999 11 years ago
parent
commit
6c89df7206
  1. 6
      src/qtlibtorrent/qbtsession.cpp

6
src/qtlibtorrent/qbtsession.cpp

@ -2778,12 +2778,6 @@ void QBtSession::startUpTorrents() { @@ -2778,12 +2778,6 @@ void QBtSession::startUpTorrents() {
if (isQueueingEnabled()) {
priority_queue<QPair<int, QString>, vector<QPair<int, QString> >, std::greater<QPair<int, QString> > > torrent_queue;
foreach (const QString &hash, known_torrents) {
QString filePath;
if (TorrentPersistentData::isMagnet(hash)) {
filePath = TorrentPersistentData::getMagnetUri(hash);
} else {
filePath = torrentBackup.path()+QDir::separator()+hash+".torrent";
}
const int prio = TorrentPersistentData::getPriority(hash);
torrent_queue.push(qMakePair(prio, hash));
}

Loading…
Cancel
Save