Author: everaldo
Date: 2007-01-02 07:13:49 -0500 (Tue, 02 Jan 2007)
New Revision: 70349

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MenuItem.cs
Log:
        * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
        SelectedItem, it prevent for errors when you must disable item
        before perform click. Fixes #80409.

2007-01-02  Everaldo Canuto  <[EMAIL PROTECTED]>



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-01-02 12:06:24 UTC (rev 70348)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-01-02 12:13:49 UTC (rev 70349)
@@ -1,5 +1,11 @@
 2007-01-02  Everaldo Canuto  <[EMAIL PROTECTED]>
 
+       * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
+       SelectedItem, it prevent for errors when you must disable item
+       before perform click. Fixes #80409.
+
+2007-01-02  Everaldo Canuto  <[EMAIL PROTECTED]>
+
        * MenuAPI.cs: Prevent second level and beyond submenus to close
        until first level when move out side of popup.
        

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MenuItem.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MenuItem.cs      
2007-01-02 12:06:24 UTC (rev 70348)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MenuItem.cs      
2007-01-02 12:13:49 UTC (rev 70349)
@@ -790,7 +790,7 @@
 
                private void MdiWindowClickHandler (object sender, EventArgs e)
                {
-                       Form mdichild = (Form) mdilist_items [SelectedItem];
+                       Form mdichild = (Form) mdilist_items [sender];
 
                        // people could add weird items to the Window menu
                        // so we can't assume its just us

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to