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 <edward.welbourne@qt.io>
This commit is contained in:
Liang Qi 2025-01-23 09:22:56 +01:00
parent 517dcbf42e
commit 225f8e069b

View File

@ -373,7 +373,7 @@ private:
QDesktopUnixServices::QDesktopUnixServices()
{
if (desktopEnvironment() == QByteArrayLiteral("UNKNOWN"))
if (detectDesktopEnvironment() == QByteArrayLiteral("UNKNOWN"))
return;
#if QT_CONFIG(dbus)