Fix a compatibility issue with old Qt 5

Ubuntu 20.04 uses a currently deprecated API requiring this change.
This commit is contained in:
Pieter Hijma
2024-07-16 10:45:09 +02:00
parent c9887e4c8c
commit 692d4526e8

View File

@@ -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);
}