Skip to content

Commit

Permalink
QGenericUnixServices: avoid to call virtual function in constructor
Browse files Browse the repository at this point in the history
This amends 1969b1a .

Pick-to: 6.5
Change-Id: I1be4e229d531f8a91e1ad3133a5b62784d18bb41
Reviewed-by: Edward Welbourne <[email protected]>
(cherry picked from commit 225f8e0)
Reviewed-by: Qt Cherry-pick Bot <[email protected]>
(cherry picked from commit 9cb8a15)
Reviewed-by: Liang Qi <[email protected]>
  • Loading branch information
liangqi committed Jan 24, 2025
1 parent 7bb97b1 commit 12ebf4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/platform/unix/qgenericunixservices.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ private Q_SLOTS:

QGenericUnixServices::QGenericUnixServices()
{
if (desktopEnvironment() == QByteArrayLiteral("UNKNOWN"))
if (detectDesktopEnvironment() == QByteArrayLiteral("UNKNOWN"))
return;

#if QT_CONFIG(dbus)
Expand Down

0 comments on commit 12ebf4a

Please sign in to comment.