From 8b3ec15978a05a27b2a8856e7b650815328d8cad Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Tue, 12 Feb 2013 16:23:10 +0100 Subject: Double check (event) filtered window && window list BUG: 312990 --- src/application.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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(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(window)); Q_ASSERT(index != -1); -- cgit v1.2.1