Author: everaldo
Date: 2008-02-05 15:59:01 -0500 (Tue, 05 Feb 2008)
New Revision: 94949

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MenuAPI.cs
Log:
2008-02-05  Everaldo Canuto  <[EMAIL PROTECTED]>

        * MenuAPI.cs: Check if control is disposable when track popup menu. 
Thanks
        Jonathan for this patch. Fixes #358442.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2008-02-05 20:56:00 UTC (rev 94948)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2008-02-05 20:59:01 UTC (rev 94949)
@@ -1,3 +1,8 @@
+2008-02-05  Everaldo Canuto  <[EMAIL PROTECTED]>
+
+       * MenuAPI.cs: Check if control is disposable when track popup menu. 
Thanks
+       Jonathan for this patch. Fixes #358442.
+
 2008-02-05  Jonathan Pobst  <[EMAIL PROTECTED]>
 
        * Form.cs: If we change the active MDI child form, let the others

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MenuAPI.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MenuAPI.cs       
2008-02-05 20:56:00 UTC (rev 94948)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MenuAPI.cs       
2008-02-05 20:59:01 UTC (rev 94949)
@@ -282,7 +282,10 @@
                                XplatUI.TranslateMessage(ref msg);
                                XplatUI.DispatchMessage(ref msg);               
                
                        }
-                       
+
+                       if (tracker.grab_control.IsDisposed)
+                               return true;
+
                        if (captured)
                                tracker.grab_control.Capture = true;
 

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

Reply via email to