forked from qt-creator/qt-creator
Return a valid URL from a user supplied input.
Change-Id: If69577caa4a5a7ea024f80c8ac995807d6d14fbd Reviewed-by: Niels Weber <niels.2.weber@nokia.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
@@ -168,9 +168,10 @@ void GeneralSettingsPage::apply()
|
||||
emit fontChanged();
|
||||
}
|
||||
|
||||
QString homePage = m_ui->homePageLineEdit->text();
|
||||
QString homePage = QUrl::fromUserInput(m_ui->homePageLineEdit->text()).toString();
|
||||
if (homePage.isEmpty())
|
||||
homePage = Help::Constants::AboutBlank;
|
||||
m_ui->homePageLineEdit->setText(homePage);
|
||||
manager->setCustomValue(QLatin1String("HomePage"), homePage);
|
||||
|
||||
const int startOption = m_ui->helpStartComboBox->currentIndex();
|
||||
|
Reference in New Issue
Block a user