Browse Source

Possible fix for crash in RSS code. Closes #1901.

adaptive-webui-19844
sledgehammer999 10 years ago
parent
commit
495800d6e9
  1. 7
      src/rss/rss_imp.cpp

7
src/rss/rss_imp.cpp

@ -334,8 +334,11 @@ void RSSImp::downloadSelectedTorrents()
{ {
QList<QListWidgetItem*> selected_items = listArticles->selectedItems(); QList<QListWidgetItem*> selected_items = listArticles->selectedItems();
foreach (const QListWidgetItem* item, selected_items) { foreach (const QListWidgetItem* item, selected_items) {
RssArticlePtr article = m_feedList->getRSSItemFromUrl(item->data(Article::FeedUrlRole).toString()) if (!item) continue;
->getItem(item->data(Article::IdRole).toString()); RssFeedPtr feed = m_feedList->getRSSItemFromUrl(item->data(Article::FeedUrlRole).toString());
if (!feed) continue;
RssArticlePtr article = feed->getItem(item->data(Article::IdRole).toString());
if (!article) continue;
QString torrentLink = article->torrentUrl(); QString torrentLink = article->torrentUrl();
// Check if it is a magnet link // Check if it is a magnet link

Loading…
Cancel
Save