complete url when using themed wizardUrlPostfix

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.
This commit is contained in:
Roeland Jago Douma 2017-03-29 17:33:32 +02:00 committed by Markus Goetz
parent 96f152d57c
commit 68f0f1b404

View 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);
}