mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Simplify url string from textfield to avoid unwanted spaces.
This commit is contained in:
parent
7e1c58b602
commit
06b2e1f645
@ -485,8 +485,7 @@ OwncloudWizard::OwncloudWizard(QWidget *parent)
|
||||
|
||||
QString OwncloudWizard::ocUrl() const
|
||||
{
|
||||
QString url = field("OCUrl").toString();
|
||||
|
||||
QString url = field("OCUrl").toString().simplified();
|
||||
if( field("secureConnect").toBool() ) {
|
||||
url.prepend(QLatin1String("https://"));
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user