diff options
-rw-r--r-- | mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/Managed.Windows.Forms/System.Windows.Forms/MenuAPI.cs | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog index acb9028559a..0c5c6303ecc 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog @@ -1,3 +1,8 @@ +2005-03-18 Peter Bartok <pbartok@novell.com> + + * MenuAPI.cs: Remove menu *before* executing selected action to + prevent the menu from 'hanging around' + 2005-03-17 Geoff Norton <gnorton@customerdna.com> * XplatUIOSX.cs: Implemented WorkingArea property diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MenuAPI.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MenuAPI.cs index 1daf18e5a3c..05891b4a21a 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MenuAPI.cs +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MenuAPI.cs @@ -912,10 +912,10 @@ namespace System.Windows.Forms MenuAPI.MENUITEM item = MenuAPI.FindItemByCoords (hMenu, new Point (e.X, e.Y)); if (item != null) { - item.item.PerformClick (); if (item.item.Enabled) { HideWindow (); } + item.item.PerformClick (); } } |