diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mainwindow.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 1608014c..da4c31a9 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1023,6 +1023,11 @@ void MainWindow::notifyMessage(const QString &msg, Rekonq::Notify status) m_popup->layout()->setMargin(margin); // useful values + + // fix crash on window close + if(!m_view->currentWebTab()->page()->currentFrame()) + return; + bool scrollbarIsVisible = m_view->currentWebTab()->page()->currentFrame()->scrollBarMaximum(Qt::Horizontal); int scrollbarSize = 0; if (scrollbarIsVisible) |