summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2013-02-12 16:23:10 +0100
committerAndrea Diamantini <adjam7@gmail.com>2013-02-12 16:23:10 +0100
commit8b3ec15978a05a27b2a8856e7b650815328d8cad (patch)
treea2fb9885e4b3d5e9d25f67d56bb0b64e4c95fa09 /src/application.cpp
parentAdd zoom text only webkit feature settings (diff)
downloadrekonq-8b3ec15978a05a27b2a8856e7b650815328d8cad.tar.xz
Double check (event) filtered window && window list
BUG: 312990
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/application.cpp b/src/application.cpp
index f55174d0..19f5b756 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -462,7 +462,9 @@ bool Application::eventFilter(QObject* watched, QEvent* event)
TabWindow *window = qobject_cast<TabWindow*>(watched);
if (window)
{
- if (m_tabWindows.at(0).data() != window)
+ if (!m_tabWindows.isEmpty()
+ && m_tabWindows.at(0)
+ && m_tabWindows.at(0).data() != window)
{
int index = m_tabWindows.indexOf(QWeakPointer<TabWindow>(window));
Q_ASSERT(index != -1);