We don't want to re-open the browser in that case.
}
_ocWizard->show();
- if (_ocWizard->currentId() == WizardCommon::Page_ShibbolethCreds) {
+ if (_ocWizard->currentId() == WizardCommon::Page_ShibbolethCreds || _ocWizard->currentId() == WizardCommon::Page_OAuthCreds) {
_ocWizard->back();
}
_ocWizard->displayError(errorMsg, _ocWizard->currentId() == WizardCommon::Page_ServerSetup && checkDowngradeAdvised(reply));
}
setOption(QWizard::HaveCustomButton1, id == WizardCommon::Page_AdvancedSetup);
+ if (id == WizardCommon::Page_AdvancedSetup && _credentialsPage == _browserCredsPage) {
+ // For OAuth, disable the back button in the Page_AdvancedSetup because we don't want
+ // to re-open the browser.
+ button(QWizard::BackButton)->setEnabled(false);
+ }
}
void OwncloudWizard::displayError(const QString &msg, bool retryHTTPonly)