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.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());
}