[Monodevelop-patches-list] r2488 - in trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor: . Gui
Lluis Sanchez <lluis@ximian.com>
lluis at mono-cvs.ximian.com
Wed Apr 27 18:58:24 EDT 2005
Author: lluis
Date: 2005-04-27 18:58:24 -0400 (Wed, 27 Apr 2005)
New Revision: 2488
Modified:
trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs
Log:
2005-04-27 Lluis Sanchez Gual <lluis at novell.com>
* Gui/SourceEditorDisplayBinding.cs: Don't crash if the debugger
is not installed.
Modified: trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog 2005-04-27 18:05:42 UTC (rev 2487)
+++ trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog 2005-04-27 22:58:24 UTC (rev 2488)
@@ -1,3 +1,8 @@
+2005-04-27 Lluis Sanchez Gual <lluis at novell.com>
+
+ * Gui/SourceEditorDisplayBinding.cs: Don't crash if the debugger
+ is not installed.
+
2005-04-27 Lluis Sanchez Gual <lluis at novell.com>
* Gui/SourceEditorView.cs:
Modified: trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs 2005-04-27 18:05:42 UTC (rev 2487)
+++ trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs 2005-04-27 22:58:24 UTC (rev 2488)
@@ -245,9 +245,11 @@
public override void Dispose()
{
- Runtime.DebuggingService.BreakpointAdded -= breakpointAddedHandler;
- Runtime.DebuggingService.BreakpointRemoved -= breakpointRemovedHandler;
- Runtime.DebuggingService.ExecutionLocationChanged -= executionChangedHandler;
+ if (Runtime.DebuggingService != null) {
+ Runtime.DebuggingService.BreakpointAdded -= breakpointAddedHandler;
+ Runtime.DebuggingService.BreakpointRemoved -= breakpointRemovedHandler;
+ Runtime.DebuggingService.ExecutionLocationChanged -= executionChangedHandler;
+ }
mainBox.Remove (se);
properties.PropertyChanged -= new PropertyEventHandler (PropertiesChanged);
More information about the Monodevelop-patches-list
mailing list