[Monodevelop-patches-list] r2322 - in trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor: . Gui
John Luke <jluke@cfl.rr.com>
jluke at mono-cvs.ximian.com
Wed Mar 9 17:31:21 EST 2005
Author: jluke
Date: 2005-03-09 17:31:21 -0500 (Wed, 09 Mar 2005)
New Revision: 2322
Modified:
trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs
Log:
dont crash when quiting with an unsaved file
Modified: trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog 2005-03-09 18:50:57 UTC (rev 2321)
+++ trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog 2005-03-09 22:31:21 UTC (rev 2322)
@@ -1,3 +1,8 @@
+2005-03-09 John Luke <john.luke at gmail.com>
+
+ * Gui/SourceEditorDisplayBinding.cs: only
+ UpdateFSW if File.Exists, otherwise we would crash
+
2005-03-07 Lluis Sanchez Gual <lluis at novell.com>
* Gui/SourceEditorWidget.cs: Properly dispose the widget.
Modified: trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs 2005-03-09 18:50:57 UTC (rev 2321)
+++ trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs 2005-03-09 22:31:21 UTC (rev 2322)
@@ -109,7 +109,7 @@
void UpdateFSW (object o, EventArgs e)
{
- if (ContentName == null || ContentName.Length == 0)
+ if (ContentName == null || ContentName.Length == 0 || !File.Exists (ContentName))
return;
fsw.EnableRaisingEvents = false;
More information about the Monodevelop-patches-list
mailing list