From c65cc6d7f0b645977e759824a4e7dc89f4445863 Mon Sep 17 00:00:00 2001 From: Graeme Geldenhuys Date: Wed, 18 Aug 2010 22:13:21 +0200 Subject: Popup Menu: fixes last selected item still focused bug. * When you selected a menu item, and then later open that popup menu again, that last selected item has focus. Now that focus is reset when the user selected a menu item. Another loooong overdue bug fix. --- src/gui/fpg_menu.pas | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/fpg_menu.pas b/src/gui/fpg_menu.pas index 2815d84d..452299a5 100644 --- a/src/gui/fpg_menu.pas +++ b/src/gui/fpg_menu.pas @@ -768,7 +768,10 @@ begin op.Close; op := op.OpenerPopup; end; + // notify menubar that we clicked a menu item + OpenerMenuBar.FClicked := False; VisibleItem(FFocusItem).Click; + FFocusItem := -1; end; { if/else } // if OpenerMenuBar <> nil then -- cgit v1.2.3-70-g09d2