mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-21 20:45:51 +03:00
If using multi-server override url and forcing it then provide combo box selection url as url in setup page
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
6358f00263
commit
5c08e45019
1 changed files with 6 additions and 2 deletions
|
@ -240,8 +240,12 @@ int OwncloudSetupPage::nextId() const
|
|||
|
||||
QString OwncloudSetupPage::url() const
|
||||
{
|
||||
QString url = _ui.leUrl->fullText().simplified();
|
||||
return url;
|
||||
const auto theme = Theme::instance();
|
||||
if (theme->multipleOverrideServers() && theme->forceOverrideServerUrl()) {
|
||||
return _ui.comboBox->currentData().toString();
|
||||
} else {
|
||||
return _ui.leUrl->fullText().simplified();
|
||||
}
|
||||
}
|
||||
|
||||
bool OwncloudSetupPage::validatePage()
|
||||
|
|
Loading…
Reference in a new issue