summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-12-29 09:55:57 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-12-29 09:55:57 +0100
commit75771bcb88cbf9b130d0930c564d54009380e494 (patch)
tree5b3385877509fe162b1213654c5eb70068460e80
parentRevert "Fix OpenSearchEngine crash call" (diff)
downloadrekonq-75771bcb88cbf9b130d0930c564d54009380e494.tar.xz
Check not existance of the extant
BUG: 264187
-rw-r--r--src/mainwindow.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 9ae319c8..4f65c205 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -1245,6 +1245,11 @@ void MainWindow::notifyMessage(const QString &msg, Rekonq::Notify status)
m_popup->setFixedSize(labelSize);
m_popup->setText(fm.elidedText(msgToShow, Qt::ElideMiddle, labelSize.width() - 2 * margin));
+ // NOTE: while currentFrame should NEVER be null
+ // we are checking here its existence cause of bug:264187
+ if (!tab->page()->currentFrame())
+ return;
+
const bool horizontalScrollbarIsVisible = tab->page()->currentFrame()->scrollBarMaximum(Qt::Horizontal);
const bool verticalScrollbarIsVisible = tab->page()->currentFrame()->scrollBarMaximum(Qt::Vertical);
const bool actionBarsVisible = m_findBar->isVisible() || m_zoomBar->isVisible();