diff options
author | Daniel Molkentin <danimo@owncloud.com> | 2013-12-12 19:20:01 +0400 |
---|---|---|
committer | Daniel Molkentin <danimo@owncloud.com> | 2013-12-12 19:20:01 +0400 |
commit | 5b2c734fe50c272ca56dfb10b2cd53d73d6b62af (patch) | |
tree | f14de56d0dd7051364ad7fe606da26e6f9792060 /src/wizard | |
parent | bc5f7d899a2c9a5105874fb358cf389121a65e13 (diff) |
Respect the override URL properly
Diffstat (limited to 'src/wizard')
-rw-r--r-- | src/wizard/owncloudsetuppage.cpp | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/wizard/owncloudsetuppage.cpp b/src/wizard/owncloudsetuppage.cpp index 5afbf332b..ea9850e08 100644 --- a/src/wizard/owncloudsetuppage.cpp +++ b/src/wizard/owncloudsetuppage.cpp @@ -78,14 +78,6 @@ void OwncloudSetupPage::setupCustomization() variant = theme->customMedia( Theme::oCSetupBottom ); WizardCommon::setupCustomMedia( variant, _ui.bottomLabel ); - - QString fixUrl = theme->overrideServerUrl(); - if( !fixUrl.isEmpty() ) { - _ui.label_2->hide(); - setServerUrl( fixUrl ); - _ui.leUrl->setEnabled( false ); - _ui.leUrl->hide(); - } } // slot hit from textChanged of the url entry field. @@ -138,12 +130,13 @@ void OwncloudSetupPage::initializePage() if (pushButton) pushButton->setDefault(true); - // URL entry is disabled when url is overriden by theme. In that - // case we just check the server type and switch to second page + // If url is overriden by theme, it's already set and + // we just check the server type and switch to second page // immediately. - if (_ui.leUrl->isEnabled()) { + if (Theme::instance()->overrideServerUrl().isEmpty()) { _ui.leUrl->setFocus(); } else { + setEnabled(false); validatePage(); } } |