mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-01-24 18:44:52 +08:00
Merge pull request #3283 from glassez/rss
Fix add torrent dialog is not shown (#2892 regression).
This commit is contained in:
commit
2658b39434
@ -344,12 +344,10 @@ void RSSImp::downloadSelectedTorrents()
|
|||||||
RssArticlePtr article = feed->getItem(item->data(Article::IdRole).toString());
|
RssArticlePtr article = feed->getItem(item->data(Article::IdRole).toString());
|
||||||
if (!article) continue;
|
if (!article) continue;
|
||||||
|
|
||||||
QString torrentLink = article->torrentUrl();
|
if (Preferences::instance()->useAdditionDialog())
|
||||||
// Check if it is a magnet link
|
AddNewTorrentDialog::show(article->torrentUrl());
|
||||||
if (torrentLink.startsWith("magnet:", Qt::CaseInsensitive) && Preferences::instance()->useAdditionDialog())
|
|
||||||
AddNewTorrentDialog::show(torrentLink);
|
|
||||||
else
|
else
|
||||||
BitTorrent::Session::instance()->addTorrent(torrentLink);
|
BitTorrent::Session::instance()->addTorrent(article->torrentUrl());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user