From 5d64eb3fda3fc7a1cad5200c9d04950d0039976b Mon Sep 17 00:00:00 2001 From: Pieter Hijma Date: Tue, 16 Jul 2024 10:45:09 +0200 Subject: [PATCH] Fix a compatibility issue with old Qt 5 Ubuntu 20.04 uses a currently deprecated API requiring this change. --- src/Gui/GuiApplication.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Gui/GuiApplication.cpp b/src/Gui/GuiApplication.cpp index a437fc3870..0e8f5ac730 100644 --- a/src/Gui/GuiApplication.cpp +++ b/src/Gui/GuiApplication.cpp @@ -264,7 +264,11 @@ bool GUISingleApplication::sendMessage(const QString &message, int timeout) #else ts.setEncoding(QStringConverter::Utf8); #endif +#if QT_VERSION <= QT_VERSION_CHECK(5, 15, 0) + ts << message << endl; +#else ts << message << Qt::endl; +#endif return socket.waitForBytesWritten(timeout); }