diff options
| author | Andrea Diamantini <adjam7@gmail.com> | 2010-01-09 11:09:47 +0100 | 
|---|---|---|
| committer | Andrea Diamantini <adjam7@gmail.com> | 2010-01-09 11:09:47 +0100 | 
| commit | a51071fa4a718da02a2b3fd8447b5834023c06bb (patch) | |
| tree | 9d3f07e289baa344f544f55fae63dfd3f48480cb | |
| parent | 0.3.28 (diff) | |
| download | rekonq-a51071fa4a718da02a2b3fd8447b5834023c06bb.tar.xz | |
fix crash on window close
| -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) | 
