summaryrefslogtreecommitdiff
path: root/src/settings/generalwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings/generalwidget.cpp')
-rw-r--r--src/settings/generalwidget.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/settings/generalwidget.cpp b/src/settings/generalwidget.cpp
index 42f1f921..fee6b841 100644
--- a/src/settings/generalwidget.cpp
+++ b/src/settings/generalwidget.cpp
@@ -57,6 +57,7 @@ GeneralWidget::GeneralWidget(QWidget *parent)
doNotTrackCheckBox->setChecked(cg.readEntry("DoNotTrack", false));
connect(doNotTrackCheckBox, SIGNAL(clicked()), this, SLOT(hasChanged()));
+ connect(kcfg_homePage, SIGNAL(editingFinished()), this, SLOT(fixHomePageURL()));
}
@@ -114,3 +115,10 @@ void GeneralWidget::checkKGetPresence()
kcfg_kgetList->setDisabled(false);
}
}
+
+
+void GeneralWidget::fixHomePageURL()
+{
+ QString fixedURL = QUrl::fromUserInput(kcfg_homePage->text()).toString();
+ kcfg_homePage->setText(fixedURL);
+}