From 225f8e069b8fabff849f2167acd2d9e4b7b94788 Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Thu, 23 Jan 2025 09:22:56 +0100 Subject: [PATCH] QDesktopUnixServices: avoid to call virtual function in constructor This amends 1969b1a90a79dad049694bd1540f8627d5f26875 . Pick-to: 6.9 6.8 6.5 Change-Id: I1be4e229d531f8a91e1ad3133a5b62784d18bb41 Reviewed-by: Edward Welbourne --- src/gui/platform/unix/qdesktopunixservices.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/platform/unix/qdesktopunixservices.cpp b/src/gui/platform/unix/qdesktopunixservices.cpp index 19edd95d14a..7cce10b5507 100644 --- a/src/gui/platform/unix/qdesktopunixservices.cpp +++ b/src/gui/platform/unix/qdesktopunixservices.cpp @@ -373,7 +373,7 @@ private: QDesktopUnixServices::QDesktopUnixServices() { - if (desktopEnvironment() == QByteArrayLiteral("UNKNOWN")) + if (detectDesktopEnvironment() == QByteArrayLiteral("UNKNOWN")) return; #if QT_CONFIG(dbus)