OS X: Attempt to fix account add oddities #4237
authorMarkus Goetz <markus@woboq.com>
Wed, 2 Dec 2015 16:59:02 +0000 (17:59 +0100)
committerMarkus Goetz <markus@woboq.com>
Wed, 2 Dec 2015 16:59:41 +0000 (17:59 +0100)
src/gui/accountsettings.cpp

index abd0670c97fd1c64b7a141874c294073c2af2f6c..7e58b8196993817ce40bed29009f77b1dcd5bef4 100644 (file)
 
 #include "account.h"
 
+#ifdef Q_OS_MAC
+#include "settingsdialogmac.h"
+#endif
+
 namespace OCC {
 
 static const char progressBarStyleC[] =
@@ -159,6 +163,16 @@ void AccountSettings::slotOpenAccountWizard()
     if (QSystemTrayIcon::isSystemTrayAvailable()) {
         topLevelWidget()->close();
     }
+#ifdef Q_OS_MAC
+    qDebug() << parent() << topLevelWidget();
+    SettingsDialogMac *sd = qobject_cast<SettingsDialogMac*>(topLevelWidget());
+
+    if (sd) {
+        sd->showActivityPage();
+    } else {
+        qFatal("nope");
+    }
+#endif
     OwncloudSetupWizard::runWizard(qApp, SLOT(slotownCloudWizardDone(int)), 0);
 }