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
parent 0da132b69e
commit e822d4fca7

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
}