[Monodevelop-patches-list] r1777 - in trunk/MonoDevelop/src/Main/Base: . Commands
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Thu Jun 17 21:56:39 EDT 2004
Author: jluke
Date: 2004-06-17 21:56:39 -0400 (Thu, 17 Jun 2004)
New Revision: 1777
Modified:
trunk/MonoDevelop/src/Main/Base/ChangeLog
trunk/MonoDevelop/src/Main/Base/Commands/FileCommands.cs
Log:
workaround a crash when the file is moved out from under us
Modified: trunk/MonoDevelop/src/Main/Base/ChangeLog
===================================================================
--- trunk/MonoDevelop/src/Main/Base/ChangeLog 2004-06-18 01:10:45 UTC (rev 1776)
+++ trunk/MonoDevelop/src/Main/Base/ChangeLog 2004-06-18 01:56:39 UTC (rev 1777)
@@ -18,6 +18,8 @@
do not force an extension on renamed files
fixes bug # 59677
+ * Commands/FileCommands.cs: workaround for #59731
+
2004-06-16 John Luke <jluke at cfl.rr.com>
* Gui/Dialogs/NewProjectDialog.cs: guard against unauthorized
Modified: trunk/MonoDevelop/src/Main/Base/Commands/FileCommands.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Commands/FileCommands.cs 2004-06-18 01:10:45 UTC (rev 1776)
+++ trunk/MonoDevelop/src/Main/Base/Commands/FileCommands.cs 2004-06-18 01:56:39 UTC (rev 1777)
@@ -75,7 +75,13 @@
sfa.Run();
} else {
FileAttributes attr = FileAttributes.ReadOnly | FileAttributes.Directory | FileAttributes.Offline | FileAttributes.System;
- if ((File.GetAttributes(window.ViewContent.ContentName) & attr) != 0) {
+ // FIXME
+ // bug #59731 is if the file is moved out from under us, we were crashing
+ // I changed it to make it ask for a new
+ // filename instead, but maybe we should
+ // detect the move and update the reference
+ // to the name instead
+ if (!File.Exists (window.ViewContent.ContentName) || (File.GetAttributes(window.ViewContent.ContentName) & attr) != 0) {
SaveFileAs sfa = new SaveFileAs();
sfa.Run();
} else {
More information about the Monodevelop-patches-list
mailing list