From a13b0f090da213d214563728ab04a843a8eea693 Mon Sep 17 00:00:00 2001 From: Eric Warmenhoven Date: Fri, 31 May 2024 19:24:11 -0400 Subject: [PATCH] wayland: build fix on older qt versions --- ui/drivers/ui_qt.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/drivers/ui_qt.cpp b/ui/drivers/ui_qt.cpp index fa91c042ff..64509a98cf 100644 --- a/ui/drivers/ui_qt.cpp +++ b/ui/drivers/ui_qt.cpp @@ -4235,9 +4235,11 @@ static void* ui_application_qt_initialize(void) #ifdef Q_OS_UNIX setlocale(LC_NUMERIC, "C"); #ifdef HAVE_WAYLAND +#if (QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)) // This needs to match the name of the .desktop file in order for windows to be correctly associated on Wayland ui_application.app->setDesktopFileName(WAYLAND_APP_ID); #endif +#endif #endif { /* Can't declare the pixmap at the top, because: "QPixmap: Must construct a QGuiApplication before a QPixmap" */