mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-23 21:05:44 +03:00
parent
42ffed3f57
commit
986b23856f
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue