mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 09:30:13 +03:00
parent
c9476a11f4
commit
dc55617144
1 changed files with 2 additions and 1 deletions
|
@ -199,9 +199,9 @@ void OwncloudSetupPage::slotUrlEditFinished()
|
|||
if (QUrl(url).isRelative() && !url.isEmpty()) {
|
||||
// no scheme defined, set one
|
||||
url.prepend("https://");
|
||||
}
|
||||
_ui.leUrl->setFullText(url);
|
||||
}
|
||||
}
|
||||
|
||||
bool OwncloudSetupPage::isComplete() const
|
||||
{
|
||||
|
@ -265,6 +265,7 @@ QString OwncloudSetupPage::url() const
|
|||
bool OwncloudSetupPage::validatePage()
|
||||
{
|
||||
if (!_authTypeKnown) {
|
||||
slotUrlEditFinished();
|
||||
QString u = url();
|
||||
QUrl qurl(u);
|
||||
if (!qurl.isValid() || qurl.host().isEmpty()) {
|
||||
|
|
Loading…
Reference in a new issue