From 8d0d91f039c1d2368410fdca83bf216eeb147ee0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Fri, 27 Dec 2013 01:04:18 +0000 Subject: [PATCH] [GB.QT4] * BUG: Imbrication of popup menu click events works correctly now and does not crash anymore. git-svn-id: svn://localhost/gambas/trunk@6020 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- gb.qt4/src/CMenu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gb.qt4/src/CMenu.cpp b/gb.qt4/src/CMenu.cpp index 4d587904e..b4eff6f3a 100644 --- a/gb.qt4/src/CMenu.cpp +++ b/gb.qt4/src/CMenu.cpp @@ -636,8 +636,9 @@ void CMENU_popup(CMENU *_object, const QPoint &pos) if (_popup_menu_clicked) { - send_click_event(_popup_menu_clicked); + CMENU *menu = _popup_menu_clicked; _popup_menu_clicked = NULL; + send_click_event(menu); } MENU_popup_count++;