From a372d22fb2edbc7cbd1b27fee76ad31636cecc11 Mon Sep 17 00:00:00 2001 From: Anton Lashkov Date: Sun, 30 Oct 2016 22:51:34 +0400 Subject: [PATCH] Add missing `else` --- src/gui/rss/feedlistwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/rss/feedlistwidget.cpp b/src/gui/rss/feedlistwidget.cpp index 28feef1d2..54251ac02 100644 --- a/src/gui/rss/feedlistwidget.cpp +++ b/src/gui/rss/feedlistwidget.cpp @@ -67,7 +67,7 @@ void FeedListWidget::itemAboutToBeRemoved(QTreeWidgetItem *item) { Rss::FilePtr file = m_rssMapping.take(item); if (Rss::FeedPtr feed = qSharedPointerDynamicCast(file)) { m_feedsItems.remove(feed->id()); - } if (Rss::FolderPtr folder = qSharedPointerDynamicCast(file)) { + } else if (Rss::FolderPtr folder = qSharedPointerDynamicCast(file)) { Rss::FeedList feeds = folder->getAllFeeds(); foreach (const Rss::FeedPtr& feed, feeds) { m_feedsItems.remove(feed->id());