Author: aolk
Date: 2006-11-06 15:45:09 -0500 (Mon, 06 Nov 2006)
New Revision: 67416

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
Log:
2006-11-06  Alexander Olk  <[EMAIL PROTECTED]>

        * ListView.cs: Allow label edit only when, when LabelEdit is
          set to true.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-11-06 20:32:52 UTC (rev 67415)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-11-06 20:45:09 UTC (rev 67416)
@@ -1,3 +1,8 @@
+2006-11-06  Alexander Olk  <[EMAIL PROTECTED]>
+
+       * ListView.cs: Allow label edit only when, when LabelEdit is
+         set to true.
+
 2006-11-06  Jackson Harper  <[EMAIL PROTECTED]>
 
        * TextControl.cs: If a suitable wrapping position isn't found,

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs      
2006-11-06 20:32:52 UTC (rev 67415)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs      
2006-11-06 20:45:09 UTC (rev 67416)
@@ -1497,7 +1497,7 @@
                                                        ToggleCheckState 
(clicked_item);
                                        } else if (me.Clicks == 1) {
                                                owner.OnClick (EventArgs.Empty);
-                                               if (!changed)
+                                               if (owner.LabelEdit && !changed)
                                                        BeginEdit 
(clicked_item); // this is probably not the correct place to execute BeginEdit
                                        }
                                } else {

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

Reply via email to