diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/settings/generalwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<MainWindow*>(parent()); + MainWindow *mw = Application::instance()->mainWindow(); WebTab *webTab = mw->currentTab(); if (webTab) { |