void AccountSettings::slotOpenAccountWizard()
{
- if (QSystemTrayIcon::isSystemTrayAvailable()) {
+ if (
+#if QT_VERSION > QT_VERSION_CHECK(5, 0, 0)
+ qgetenv("QT_QPA_PLATFORMTHEME") == "appmenu-qt5"
+ // We can't call isSystemTrayAvailable with appmenu-qt5 because it breaks the systemtray
+ // (issue #4693, #4944)
+#endif
+ || QSystemTrayIcon::isSystemTrayAvailable()) {
topLevelWidget()->close();
}
#ifdef Q_OS_MAC
}
}
-void GeneralSettings::slotOpenAccountWizard()
-{
- if (QSystemTrayIcon::isSystemTrayAvailable()) {
- topLevelWidget()->close();
- }
- OwncloudSetupWizard::runWizard(qApp, SLOT(slotownCloudWizardDone(int)), 0);
-}
-
} // namespace OCC