Author: gert
Date: 2007-02-23 11:00:00 -0500 (Fri, 23 Feb 2007)
New Revision: 73372
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FileDialog.cs
Log:
* FileDialog.cs: Update FSEntry when move is successful. Fixes
bug #80948.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-02-23 15:58:54 UTC (rev 73371)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-02-23 16:00:00 UTC (rev 73372)
@@ -1,3 +1,8 @@
+2007-02-23 Gert Driesen <[EMAIL PROTECTED]>
+
+ * FileDialog.cs: Update FSEntry when move is successful. Fixes
+ bug #80948.
+
2007-02-23 Everaldo Canuto <[EMAIL PROTECTED]>
* MainMenu.cs: Change Draw method to take care about MenuOrigin to be
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FileDialog.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FileDialog.cs
2007-02-23 15:58:54 UTC (rev 73371)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FileDialog.cs
2007-02-23 16:00:00 UTC (rev 73372)
@@ -2655,6 +2655,11 @@
string destDir = Path.Combine (folder, e.Label);
if (!vfs.MoveFolder (sourceDir, destDir)) {
e.CancelEdit = true;
+ } else {
+ if (fsEntry.RealName != null)
+ fsEntry.RealName = destDir;
+ else
+ fsEntry.FullName = destDir;
}
break;
case FSEntry.FSEntryType.File:
@@ -2662,6 +2667,11 @@
string destFile = Path.Combine (folder,
e.Label);
if (!vfs.MoveFile (sourceFile, destFile)) {
e.CancelEdit = true;
+ } else {
+ if (fsEntry.RealName != null)
+ fsEntry.RealName = destFile;
+ else
+ fsEntry.FullName = destFile;
}
break;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches