From 75771bcb88cbf9b130d0930c564d54009380e494 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 29 Dec 2011 09:55:57 +0100 Subject: Check not existance of the extant BUG: 264187 --- src/mainwindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mainwindow.cpp') 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(); -- cgit v1.2.1