Browse Source

RSS: Correctly clean up config file when removing a feed

adaptive-webui-19844
Christophe Dumez 13 years ago
parent
commit
8219c29b0c
  1. 5
      src/rss/rssfeed.cpp

5
src/rss/rssfeed.cpp

@ -113,6 +113,11 @@ void RssFeed::removeAllSettings() { @@ -113,6 +113,11 @@ void RssFeed::removeAllSettings() {
all_feeds_filters.remove(m_url);
qBTRSS.setValue("feed_filters", all_feeds_filters);
}
QHash<QString, QVariant> all_old_items = qBTRSS.value("old_items", QHash<QString, QVariant>()).toHash();
if (all_old_items.contains(m_url)) {
all_old_items.remove(m_url);
qBTRSS.setValue("old_items", all_old_items);
}
}
bool RssFeed::itemAlreadyExists(const QString &hash) const {

Loading…
Cancel
Save