diff options
author | Peter Dennis Bartok <pbartok@mono-cvs.ximian.com> | 2005-03-18 19:45:31 +0300 |
---|---|---|
committer | Peter Dennis Bartok <pbartok@mono-cvs.ximian.com> | 2005-03-18 19:45:31 +0300 |
commit | d305ee9a95945be36cd4517ef440ce99833068a0 (patch) | |
tree | ec6b693ab305f72a6fe039e7b93c302d03498d49 | |
parent | a38cbc553aa4253dff90a04ab64a4a7b722b1129 (diff) |
2005-03-18 Peter Bartok <pbartok@novell.com>mono-1.1.5mono-1-1-5
* MenuAPI.cs: Remove menu *before* executing selected action to
prevent the menu from 'hanging around'
svn path=/trunk/mcs/; revision=41997
-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 (); } } |