File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -233,10 +233,13 @@ void ownCloudGui::slotTrayClicked(QSystemTrayIcon::ActivationReason reason)
233233 if (reason == QSystemTrayIcon::DoubleClick && currentUser && currentUser->hasLocalFolder ()) {
234234 currentUser->openLocalFolder ();
235235 } else if (reason == QSystemTrayIcon::Trigger) {
236- if (OwncloudSetupWizard::bringWizardToFrontIfVisible ()) {
237- // brought wizard to front
238- } else if (AccountManager::instance ()->accounts ().isEmpty ()) {
239- slotNewAccountWizard ();
236+ if (AccountManager::instance ()->accounts ().isEmpty ()) {
237+ // Without a configured account the tray icon drives the setup wizard
238+ // directly: open it, or bring the existing one back to front instead
239+ // of opening a second wizard.
240+ if (!OwncloudSetupWizard::bringWizardToFrontIfVisible ()) {
241+ slotNewAccountWizard ();
242+ }
240243 } else if (_tray->raiseDialogs ()) {
241244 // Brings dialogs hidden by other apps to front, returns true if any raised
242245 } else if (_tray->isOpen ()) {
You can’t perform that action at this time.
0 commit comments