diff --git a/localization/rssguard_en.ts b/localization/rssguard_en.ts index d99c8d796..4387370f5 100644 --- a/localization/rssguard_en.ts +++ b/localization/rssguard_en.ts @@ -7132,42 +7132,42 @@ Post-processing script: %3 - + Script - + Local file - + Unknown - + Cannot save data for feed: %1 - + Cannot move feed, detailed information was logged via debug log. - + Cannot save feed data - + feed format not recognized - + Cannot move feed diff --git a/src/librssguard/gui/notifications/articlelistnotification.cpp b/src/librssguard/gui/notifications/articlelistnotification.cpp index 1183bb0ba..f01d2648a 100644 --- a/src/librssguard/gui/notifications/articlelistnotification.cpp +++ b/src/librssguard/gui/notifications/articlelistnotification.cpp @@ -88,6 +88,11 @@ void ArticleListNotification::loadResults(const QHash>& ne void ArticleListNotification::openArticleInArticleList() { emit openingArticleInArticleListRequested(m_ui.m_cmbFeeds->currentData().value(), selectedMessage()); + + if (m_newMessages.size() == 1 && m_newMessages.value(m_newMessages.keys().at(0)).size() == 1) { + // We only have 1 message in 1 feed. + emit closeRequested(this); + } } void ArticleListNotification::onMessageSelected(const QModelIndex& current, const QModelIndex& previous) { @@ -118,6 +123,11 @@ void ArticleListNotification::openArticleInWebBrowser() { emit reloadMessageListRequested(false); qApp->web()->openUrlInExternalBrowser(msg.m_url); + + if (m_newMessages.size() == 1 && m_newMessages.value(m_newMessages.keys().at(0)).size() == 1) { + // We only have 1 message in 1 feed. + emit closeRequested(this); + } } void ArticleListNotification::markAllRead() { diff --git a/src/librssguard/services/standard/standardfeed.cpp b/src/librssguard/services/standard/standardfeed.cpp index 411cfd42e..023ec1561 100644 --- a/src/librssguard/services/standard/standardfeed.cpp +++ b/src/librssguard/services/standard/standardfeed.cpp @@ -84,7 +84,10 @@ bool StandardFeed::editViaGui() { {}, qApp->mainFormWidget())); - form_pointer->addEditFeed(this); + if (form_pointer->addEditFeed(this) != nullptr) { + setLastEtag({}); + } + return false; }