Simplify url string from textfield to avoid unwanted spaces.

This commit is contained in:
Klaas Freitag 2012-10-05 22:33:16 +02:00
parent 7e1c58b602
commit 06b2e1f645

View file

@ -485,8 +485,7 @@ OwncloudWizard::OwncloudWizard(QWidget *parent)
QString OwncloudWizard::ocUrl() const QString OwncloudWizard::ocUrl() const
{ {
QString url = field("OCUrl").toString(); QString url = field("OCUrl").toString().simplified();
if( field("secureConnect").toBool() ) { if( field("secureConnect").toBool() ) {
url.prepend(QLatin1String("https://")); url.prepend(QLatin1String("https://"));
} else { } else {