diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2013-02-12 16:23:10 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2013-02-12 16:23:10 +0100 |
commit | 8b3ec15978a05a27b2a8856e7b650815328d8cad (patch) | |
tree | a2fb9885e4b3d5e9d25f67d56bb0b64e4c95fa09 /src | |
parent | Add zoom text only webkit feature settings (diff) | |
download | rekonq-8b3ec15978a05a27b2a8856e7b650815328d8cad.tar.xz |
Double check (event) filtered window && window list
BUG: 312990
Diffstat (limited to 'src')
-rw-r--r-- | src/application.cpp | 4 |
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); |