Browse Source

Fix add torrent dialog is not shown.

adaptive-webui-19844
Vladimir Golovnev (Glassez) 10 years ago
parent
commit
f40d3d1fc6
  1. 8
      src/gui/rss/rss_imp.cpp

8
src/gui/rss/rss_imp.cpp

@ -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…
Cancel
Save