diff --git a/kstyle/breezetoolsareamanager.cpp b/kstyle/breezetoolsareamanager.cpp index 7c459d8bb..725c34918 100644 --- a/kstyle/breezetoolsareamanager.cpp +++ b/kstyle/breezetoolsareamanager.cpp @@ -186,6 +186,8 @@ bool ToolsAreaManager::eventFilter(QObject *watched, QEvent *event) QChildEvent *ev = nullptr; if (event->type() == QEvent::ChildAdded || event->type() == QEvent::ChildRemoved) { ev = static_cast(event); + } else { + return false; } QPointer tb = qobject_cast(ev->child());