1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-02-05 19:34:17 +00:00

Fix add torrent dialog is not shown.

This commit is contained in:
Vladimir Golovnev (Glassez) 2015-06-23 11:19:34 +03:00
parent bc97208516
commit f40d3d1fc6

View File

@ -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());
} }
} }