Show and raise the wizard on success / error in the Login Flow v2 auth.
Signed-off-by: Michael Schuster <michael@schuster.ms>
errorMsg = tr("There was an invalid response to an authenticated webdav request");
}
- _ocWizard->show();
+ // bring wizard to top
+ _ocWizard->bringToTop();
if (_ocWizard->currentId() == WizardCommon::Page_ShibbolethCreds || _ocWizard->currentId() == WizardCommon::Page_OAuthCreds || _ocWizard->currentId() == WizardCommon::Page_Flow2AuthCreds) {
_ocWizard->back();
}
void Flow2AuthCredsPage::setConnected()
{
- wizard()->show();
+ OwncloudWizard *ocWizard = qobject_cast<OwncloudWizard *>(wizard());
+ Q_ASSERT(ocWizard);
+
+ // bring wizard to top
+ ocWizard->bringToTop();
}
AbstractCredentials *Flow2AuthCredsPage::getCredentials() const
// HINT: Customize wizard's own style here, if necessary in the future (Dark-/Light-Mode switching)
}
+void OwncloudWizard::bringToTop()
+{
+ // bring wizard to top
+ show();
+ raise();
+}
+
} // end namespace
void displayError(const QString &, bool retryHTTPonly);
AbstractCredentials *getCredentials() const;
+ void bringToTop();
+
// FIXME: Can those be local variables?
// Set from the OwncloudSetupPage, later used from OwncloudHttpCredsPage
QSslKey _clientSslKey;