mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-03 02:14:16 +00:00
Remove unnecessary code from qbtsession.
This commit is contained in:
parent
dd78744695
commit
6c89df7206
@ -2778,12 +2778,6 @@ void QBtSession::startUpTorrents() {
|
|||||||
if (isQueueingEnabled()) {
|
if (isQueueingEnabled()) {
|
||||||
priority_queue<QPair<int, QString>, vector<QPair<int, QString> >, std::greater<QPair<int, QString> > > torrent_queue;
|
priority_queue<QPair<int, QString>, vector<QPair<int, QString> >, std::greater<QPair<int, QString> > > torrent_queue;
|
||||||
foreach (const QString &hash, known_torrents) {
|
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);
|
const int prio = TorrentPersistentData::getPriority(hash);
|
||||||
torrent_queue.push(qMakePair(prio, hash));
|
torrent_queue.push(qMakePair(prio, hash));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user