complete url when using themed wizardUrlPostfix
authorRoeland Jago Douma <roeland@famdouma.nl>
Wed, 29 Mar 2017 15:33:32 +0000 (17:33 +0200)
committerMarkus Goetz <markus@woboq.com>
Wed, 29 Mar 2017 16:09:15 +0000 (18:09 +0200)
Before we would only open the part of the url that the users entered.
Now if the wizardUrlPostfix is used this is should be appended to that
when opening the browser on the result page.

src/gui/wizard/owncloudwizardresultpage.cpp

index bf9e146f37fae3a937739c865655ad35c0915477..4018fedbaf67eca132e09d6b09529ce4e25e7e98 100644 (file)
@@ -97,7 +97,8 @@ void OwncloudWizardResultPage::slotOpenLocal()
 
 void OwncloudWizardResultPage::slotOpenServer()
 {
-    QUrl url = field("OCUrl").toUrl();
+    Theme* theme = Theme::instance();
+    QUrl url = QUrl(field("OCUrl").toString() + theme->wizardUrlPostfix());
     qDebug() << Q_FUNC_INFO << url;
     QDesktopServices::openUrl(url);
 }