Skip to content
Browse files

2005-03-18 Peter Bartok <pbartok@novell.com>

	* MenuAPI.cs: Remove menu *before* executing selected action to
	  prevent the menu from 'hanging around'
	  

svn path=/trunk/mcs/; revision=41997
  • Loading branch information...
1 parent a38cbc5 commit d305ee9a95945be36cd4517ef440ce99833068a0 Peter Dennis Bartok committed Mar 18, 2005
View
5 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
View
2 mcs/class/Managed.Windows.Forms/System.Windows.Forms/MenuAPI.cs
@@ -912,10 +912,10 @@ private void OnMouseUpPUW (object sender, MouseEventArgs e)
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 ();
}
}

0 comments on commit d305ee9

Please sign in to comment.
Something went wrong with that request. Please try again.