Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Dennis Bartok <pbartok@mono-cvs.ximian.com>2005-03-18 19:45:31 +0300
committerPeter Dennis Bartok <pbartok@mono-cvs.ximian.com>2005-03-18 19:45:31 +0300
commitd305ee9a95945be36cd4517ef440ce99833068a0 (patch)
treeec6b693ab305f72a6fe039e7b93c302d03498d49
parenta38cbc553aa4253dff90a04ab64a4a7b722b1129 (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/ChangeLog5
-rw-r--r--mcs/class/Managed.Windows.Forms/System.Windows.Forms/MenuAPI.cs2
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 ();
}
}