mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
RSS: Correctly clean up config file when removing a feed
This commit is contained in:
@@ -113,6 +113,11 @@ void RssFeed::removeAllSettings() {
|
|||||||
all_feeds_filters.remove(m_url);
|
all_feeds_filters.remove(m_url);
|
||||||
qBTRSS.setValue("feed_filters", all_feeds_filters);
|
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 {
|
bool RssFeed::itemAlreadyExists(const QString &hash) const {
|
||||||
|
|||||||
Reference in New Issue
Block a user