QGenericUnixServices: avoid to call virtual function in constructor
This amends 1969b1a90a79dad049694bd1540f8627d5f26875 . Pick-to: 6.5 Change-Id: I1be4e229d531f8a91e1ad3133a5b62784d18bb41 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> (cherry picked from commit 225f8e069b8fabff849f2167acd2d9e4b7b94788) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 9cb8a156fd7a6067c30799e5b2915f4e8bb963d0) Reviewed-by: Liang Qi <liang.qi@qt.io>
This commit is contained in:
parent
7bb97b13c5
commit
12ebf4a046
@ -373,7 +373,7 @@ private:
|
||||
|
||||
QGenericUnixServices::QGenericUnixServices()
|
||||
{
|
||||
if (desktopEnvironment() == QByteArrayLiteral("UNKNOWN"))
|
||||
if (detectDesktopEnvironment() == QByteArrayLiteral("UNKNOWN"))
|
||||
return;
|
||||
|
||||
#if QT_CONFIG(dbus)
|
||||
|
Loading…
x
Reference in New Issue
Block a user