summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-01-09 11:09:47 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-01-09 11:09:47 +0100
commita51071fa4a718da02a2b3fd8447b5834023c06bb (patch)
tree9d3f07e289baa344f544f55fae63dfd3f48480cb /src
parent0.3.28 (diff)
downloadrekonq-a51071fa4a718da02a2b3fd8447b5834023c06bb.tar.xz
fix crash on window close
Diffstat (limited to 'src')
-rw-r--r--src/mainwindow.cpp5
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)