summaryrefslogtreecommitdiff
path: root/src/settings
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings')
-rw-r--r--src/settings/generalwidget.cpp8
-rw-r--r--src/settings/generalwidget.h1
2 files changed, 9 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);
+}
diff --git a/src/settings/generalwidget.h b/src/settings/generalwidget.h
index 5a16e4f1..6372dcc2 100644
--- a/src/settings/generalwidget.h
+++ b/src/settings/generalwidget.h
@@ -53,6 +53,7 @@ private slots:
void hasChanged();
void setHomeToCurrentPage();
void disableHomeSettings(bool);
+ void fixHomePageURL();
private:
bool _changed;