From 0f8ce5f7de2fb505f1bce416d40d17ac0ab8a2f1 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Fri, 5 Mar 2021 07:15:02 +0100 Subject: [PATCH] Small fix for #373. --- resources/desktop/com.github.rssguard.appdata.xml | 2 +- src/librssguard/core/messageobject.cpp | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/resources/desktop/com.github.rssguard.appdata.xml b/resources/desktop/com.github.rssguard.appdata.xml index 16f1a3c46..e2cdd9c3e 100644 --- a/resources/desktop/com.github.rssguard.appdata.xml +++ b/resources/desktop/com.github.rssguard.appdata.xml @@ -30,7 +30,7 @@ https://martinrotter.github.io/donate/ - + none diff --git a/src/librssguard/core/messageobject.cpp b/src/librssguard/core/messageobject.cpp index 4d0bd0e8e..2c8273a53 100755 --- a/src/librssguard/core/messageobject.cpp +++ b/src/librssguard/core/messageobject.cpp @@ -184,7 +184,12 @@ void MessageObject::setIsDeleted(bool is_deleted) { } QString MessageObject::feedCustomId() const { - return m_feedCustomId; + if (m_feedCustomId.isEmpty() || m_feedCustomId == QString::number(NO_PARENT_CATEGORY)) { + return m_message->m_feedId; + } + else { + return m_feedCustomId; + } } int MessageObject::accountId() const {