From 3185e6cd55045b4b3e5fa66a668418b7388def62 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 17 Mar 2023 20:46:09 +0400 Subject: [PATCH] Fix possible stack overflow. --- ui/widgets/popup_menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/widgets/popup_menu.cpp b/ui/widgets/popup_menu.cpp index 9f5709d..ff81dbc 100644 --- a/ui/widgets/popup_menu.cpp +++ b/ui/widgets/popup_menu.cpp @@ -674,7 +674,7 @@ bool PopupMenu::eventFilter(QObject *o, QEvent *e) { } void PopupMenu::hideMenu(bool fast) { - if (isHidden()) { + if (isHidden() || (_hiding && !fast)) { return; } if (_parent && !_a_opacity.animating()) {