Make setup page usable from shibboleth

Second patch to address #2607
This commit is contained in:
Daniel Molkentin 2014-12-17 18:13:59 +01:00
parent 42ffed3f57
commit 986b23856f

View file

@ -45,6 +45,10 @@ OwncloudSetupPage::OwncloudSetupPage()
setTitle(WizardCommon::titleTemplate().arg(tr("Connect to %1").arg(theme->appNameGUI())));
setSubTitle(WizardCommon::subTitleTemplate().arg(tr("Setup %1 server").arg(theme->appNameGUI())));
if (!theme->overrideServerUrl().isEmpty()) {
_ui.leUrl->setEnabled(false);
}
registerField( QLatin1String("OCUrl*"), _ui.leUrl );
_ui.resultLayout->addWidget( _progressIndi );
@ -145,6 +149,8 @@ void OwncloudSetupPage::initializePage()
_ui.leUrl->setFocus();
} else {
setCommitPage(true);
// Hack: setCommitPage() changes caption, but after an error this page could still be visible
setButtonText(QWizard::CommitButton, tr("&Next >"));
validatePage();
setVisible(false);
// because the wizard will call show on us right after this call, we need to hide in the