summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiang Qi <[email protected]>2025-01-23 09:22:56 +0100
committerLiang Qi <[email protected]>2025-01-23 14:54:48 +0100
commit225f8e069b8fabff849f2167acd2d9e4b7b94788 (patch)
treed8bae3bab21b2fbac69ddb8c37cff385f5b08b3f
parent517dcbf42e09fe39d9bb77db3027fe7b90ddc9d2 (diff)
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 <[email protected]>
-rw-r--r--src/gui/platform/unix/qdesktopunixservices.cpp2
1 files changed, 1 insertions, 1 deletions
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)