summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@gmail.com>2010-08-18 22:13:21 +0200
committerGraeme Geldenhuys <graemeg@gmail.com>2010-08-18 22:13:21 +0200
commitc65cc6d7f0b645977e759824a4e7dc89f4445863 (patch)
tree13876739d8215ed20814ec184ebb875fdd84f7e4 /src/gui
parenta33aa25be6f67043ab587741f4ce28377d5584fb (diff)
downloadfpGUI-c65cc6d7f0b645977e759824a4e7dc89f4445863.tar.xz
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.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/fpg_menu.pas3
1 files changed, 3 insertions, 0 deletions
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