[network/ruqola] src/core: Clean mList after loading offset/total

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 2a09f8a2a05387d6011c25ff6e86335f51e90ccc by Laurent Montel.
Committed on 28/07/2026 at 19:11.
Pushed by mlaurent into branch 'master'.

Clean mList after loading offset/total

M  +1    -1    src/core/listmessages.cpp

https://invent.kde.org/network/ruqola/-/commit/2a09f8a2a05387d6011c25ff6e86335f51e90ccc

diff --git a/src/core/listmessages.cpp b/src/core/listmessages.cpp
index 96deebe648..f5b197fc37 100644
--- a/src/core/listmessages.cpp
+++ b/src/core/listmessages.cpp
@@ -17,10 +17,10 @@ ListMessages::~ListMessages() = default;
 
 void ListMessages::parseListInfo(const QJsonObject &messagesObj)
 {
+    mListMessages.clear();
     mMessagesCount = messagesObj["count"_L1].toInt();
     mOffset = messagesObj["offset"_L1].toInt();
     mTotal = messagesObj["total"_L1].toInt();
-    mListMessages.clear();
 }
 
 void ListMessages::parseMessagesList(const QJsonObject &messagesObj, const QString &arrayName)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.