From 12ebf4a04639b9b0295f570d2d3598989c34e123 Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Fri, 24 Jan 2025 12:41:01 +0100 Subject: [PATCH] QGenericUnixServices: avoid to call virtual function in constructor This amends 1969b1a90a79dad049694bd1540f8627d5f26875 . Pick-to: 6.5 Change-Id: I1be4e229d531f8a91e1ad3133a5b62784d18bb41 Reviewed-by: Edward Welbourne (cherry picked from commit 225f8e069b8fabff849f2167acd2d9e4b7b94788) Reviewed-by: Qt Cherry-pick Bot (cherry picked from commit 9cb8a156fd7a6067c30799e5b2915f4e8bb963d0) Reviewed-by: Liang Qi --- src/gui/platform/unix/qgenericunixservices.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/platform/unix/qgenericunixservices.cpp b/src/gui/platform/unix/qgenericunixservices.cpp index 386ac7490ec..bf99af8aaca 100644 --- a/src/gui/platform/unix/qgenericunixservices.cpp +++ b/src/gui/platform/unix/qgenericunixservices.cpp @@ -373,7 +373,7 @@ private: QGenericUnixServices::QGenericUnixServices() { - if (desktopEnvironment() == QByteArrayLiteral("UNKNOWN")) + if (detectDesktopEnvironment() == QByteArrayLiteral("UNKNOWN")) return; #if QT_CONFIG(dbus)