summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/settings/generalwidget.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/settings/generalwidget.cpp b/src/settings/generalwidget.cpp
index 0f582d66..ed38f35b 100644
--- a/src/settings/generalwidget.cpp
+++ b/src/settings/generalwidget.cpp
@@ -87,11 +87,14 @@ void GeneralWidget::hasChanged()
void GeneralWidget::setHomeToCurrentPage()
{
+ if (!rApp->rekonqWindow())
+ return;
+
WebWindow *tab = rApp->rekonqWindow()->currentWebWindow();
- if (tab)
- {
- kcfg_homePage->setText(tab->url().url());
- }
+ if (!tab)
+ return;
+
+ kcfg_homePage->setText(tab->url().url());
}