summaryrefslogtreecommitdiff
path: root/src/settings
diff options
context:
space:
mode:
authorFurkan Uzumcu <furkanuzumcu@gmail.com>2011-08-31 11:29:02 +0200
committerAndrea Diamantini <adjam7@gmail.com>2011-08-31 11:29:02 +0200
commitbfafbf3469ad18353b2feb3eafdd13eb207967da (patch)
treef9a18eb595f7981282f096f5c0560c8020497183 /src/settings
parentFix SSL widget crash (diff)
downloadrekonq-bfafbf3469ad18353b2feb3eafdd13eb207967da.tar.xz
Fix data insert in the home page setting dialog
REVIEW: 102423 REVIEWED-BY: adjam
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;