on xenial help sign in
Add a Q_ASSERT to state that we really don't expect it to be null
a334151Daniel d'Andrada
plugins/Ubuntu/Gestures/PressedOutsideNotifier.cpp+1
@@ -84,6 +84,7 @@ void PressedOutsideNotifier::setupOrTearDownEventFiltering()
84void PressedOutsideNotifier::setupEventFiltering()
84void PressedOutsideNotifier::setupEventFiltering()
85{
85{
86 QQuickWindow *currentWindow = window();
86 QQuickWindow *currentWindow = window();
87+ Q_ASSERT(currentWindow != nullptr);
87
88
88 if (currentWindow == m_filteredWindow)
89 if (currentWindow == m_filteredWindow)
89 return;
90 return;