[libraries/ktextaddons] textautogeneratetext/core/models: Add qCWarning

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 604bc0ddf6cf273598deb891a5ece638148cfb89 by Laurent Montel.
Committed on 27/07/2026 at 20:13.
Pushed by mlaurent into branch 'master'.

Add qCWarning

M  +1    -0    textautogeneratetext/core/models/textautogeneratechatsmodel.cpp

https://invent.kde.org/libraries/ktextaddons/-/commit/604bc0ddf6cf273598deb891a5ece638148cfb89

diff --git a/textautogeneratetext/core/models/textautogeneratechatsmodel.cpp b/textautogeneratetext/core/models/textautogeneratechatsmodel.cpp
index c47eb27c3..2b58a8783 100644
--- a/textautogeneratetext/core/models/textautogeneratechatsmodel.cpp
+++ b/textautogeneratetext/core/models/textautogeneratechatsmodel.cpp
@@ -182,6 +182,7 @@ QString TextAutoGenerateChatsModel::sectionName(TextAutoGenerateChat::SectionHis
     case TextAutoGenerateChat::SectionHistory::NSections:
         break;
     }
+    qCWarning(TEXTAUTOGENERATETEXT_CORE_LOG) << " Invalid section type";
     return u"ERROR"_s;
 }
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.