[utilities/kaichat] src/apps: Add info why we don't close it

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 608b9974d1b680ff5bfd00c1945a6caa8dd7e80d by Laurent Montel.
Committed on 16/08/2026 at 05:25.
Pushed by mlaurent into branch 'master'.

Add info why we don't close it

M  +2    -1    src/apps/main.cpp

https://invent.kde.org/utilities/kaichat/-/commit/608b9974d1b680ff5bfd00c1945a6caa8dd7e80d

diff --git a/src/apps/main.cpp b/src/apps/main.cpp
index 4703094..644057a 100644
--- a/src/apps/main.cpp
+++ b/src/apps/main.cpp
@@ -202,9 +202,10 @@ int main(int argc, char *argv[])
     KSignalHandler::self()->watchSignal(SIGTERM);
     QObject::connect(KSignalHandler::self(), &KSignalHandler::signalReceived, &app, [mw](int signal) {
         if (signal == SIGINT || signal == SIGTERM) {
-            printf("Shutting down...\n");
             if (!mw->hasChatInProgress()) {
                 mw->close();
+            } else {
+                printf("Don't close during an active chat...\n");
             }
         }
     });
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.