Skip to content

Commit a13b0f0

Browse files
warmenhovenLibretroAdmin
authored andcommitted
wayland: build fix on older qt versions
1 parent 2f1dd3e commit a13b0f0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ui/drivers/ui_qt.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4235,9 +4235,11 @@ static void* ui_application_qt_initialize(void)
42354235
#ifdef Q_OS_UNIX
42364236
setlocale(LC_NUMERIC, "C");
42374237
#ifdef HAVE_WAYLAND
4238+
#if (QT_VERSION >= QT_VERSION_CHECK(5, 7, 0))
42384239
// This needs to match the name of the .desktop file in order for windows to be correctly associated on Wayland
42394240
ui_application.app->setDesktopFileName(WAYLAND_APP_ID);
42404241
#endif
4242+
#endif
42414243
#endif
42424244
{
42434245
/* Can't declare the pixmap at the top, because: "QPixmap: Must construct a QGuiApplication before a QPixmap" */

0 commit comments

Comments
 (0)