From 3e1d14461c59209697e408f1bfcd46e0052782fd Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Tue, 25 May 2010 00:36:04 +0200 Subject: fix set home to current page button --- src/settings/generalwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settings/generalwidget.cpp b/src/settings/generalwidget.cpp index fc2d4d5d..09c9e5c7 100644 --- a/src/settings/generalwidget.cpp +++ b/src/settings/generalwidget.cpp @@ -69,7 +69,7 @@ void GeneralWidget::hasChanged() void GeneralWidget::setHomeToCurrentPage() { - MainWindow *mw = qobject_cast(parent()); + MainWindow *mw = Application::instance()->mainWindow(); WebTab *webTab = mw->currentTab(); if (webTab) { -- cgit v1.2.1