[PATCH] Write usage text to stderr on Windows too

Tormod Volden lists.tormod at gmail.com
Mon Jan 21 20:53:08 GMT 2019


From: Tormod Volden <debian.tormod at gmail.com>

Signed-off-by: Tormod Volden <debian.tormod at gmail.com>
---
 src/libkstapp/commandlineparser.cpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/libkstapp/commandlineparser.cpp b/src/libkstapp/commandlineparser.cpp
index 2b28c563..945deb77 100644
--- a/src/libkstapp/commandlineparser.cpp
+++ b/src/libkstapp/commandlineparser.cpp
@@ -142,18 +142,17 @@ namespace Kst {
 static void printText(const QString& text, const QString& detailText = QString(), const QString& t = QString())
 {
 #ifdef Q_OS_WIN
-  // No console on Windows.
+  // Not always console on Windows.
   QMessageBox box(QMessageBox::Information, "Kst", text + t);
   if (!detailText.isEmpty()) {
     box.setDetailedText(detailText);
   }
   box.exec();
-#else
+#endif
   QString displayText = QString(text) + QString(detailText) + t;
 
   fprintf(stderr,"%s\n", qPrintable(displayText));
   //qWarning("%s", qPrintable(displayText));
-#endif
 }
 
 
-- 
2.13.0



More information about the Kst mailing list