Author: gert
Date: 2007-08-29 12:08:02 -0400 (Wed, 29 Aug 2007)
New Revision: 85003
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FolderBrowserDialog.cs
Log:
* FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
up-to-date. Fixes bug #82618.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-08-29 16:02:38 UTC (rev 85002)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-08-29 16:08:02 UTC (rev 85003)
@@ -1,3 +1,8 @@
+2007-08-29 Gert Driesen <[EMAIL PROTECTED]>
+
+ * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
+ up-to-date. Fixes bug #82618.
+
2007-05-29 Everaldo Canuto <[EMAIL PROTECTED]>
* TextBoxBase.cs: Call CalculateDocument after changes Lines property to
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FolderBrowserDialog.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FolderBrowserDialog.cs
2007-08-29 16:02:38 UTC (rev 85002)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FolderBrowserDialog.cs
2007-08-29 16:08:02 UTC (rev 85003)
@@ -427,7 +427,7 @@
fbnode.Expand ();
dont_do_onbeforeexpand = false;
- // to match MS, immediately creates the new
folder
+ // to match MS, immediately create the new
folder
// and rename it once the label edit completes
string fullPath = Path.Combine
(fbnode.RealPath, tmp_filename);
if (!vfs.CreateFolder (fullPath))
@@ -435,7 +435,7 @@
FBTreeNode new_node = new FBTreeNode
(tmp_filename);
new_node.ImageIndex = NodeImageIndex
(tmp_filename);
- new_node.RealPath = fullPath;
+ new_node.Tag = new_node.RealPath = fullPath;
fbnode.Nodes.Add (new_node);
LabelEdit = true;
@@ -452,7 +452,7 @@
string newPath = Path.Combine
(parent_real_path, e.Label);
if (vfs.MoveFolder
(originalPath, newPath)) {
- fbnode.RealPath =
newPath;
+ fbnode.Tag =
fbnode.RealPath = newPath;
} else {
e.CancelEdit = true;
e.Node.BeginEdit ();
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches