Commit 8b3ec159 authored by Andrea Diamantini's avatar Andrea Diamantini
Browse files

Double check (event) filtered window && window list

BUG: 312990
parent 40a4a3a9
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment