Correctly detect whether desktop integration is active

PR #18259.
This commit is contained in:
Vladimir Golovnev 2022-12-22 08:22:36 +03:00 committed by GitHub
commit e822d4fca7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -104,7 +104,7 @@ bool DesktopIntegration::isActive() const
#ifdef Q_OS_MACOS
return true;
#else
return QSystemTrayIcon::isSystemTrayAvailable();
return m_systrayIcon && QSystemTrayIcon::isSystemTrayAvailable();
#endif
}