[Monodevelop-patches-list] r1991 - in trunk/MonoDevelop/Core/src/Main/Base: . Gui/Workbench
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Fri Oct 22 01:27:40 EDT 2004
Author: toshok
Date: 2004-10-22 01:27:40 -0400 (Fri, 22 Oct 2004)
New Revision: 1991
Modified:
trunk/MonoDevelop/Core/src/Main/Base/ChangeLog
trunk/MonoDevelop/Core/src/Main/Base/Gui/Workbench/DefaultWorkbench.cs
Log:
2004-10-21 Chris Toshok <toshok at ximian.com>
* Gui/Workbench/DefaultWorkbench.cs: don't try to open
cur_dbgFilename if it's String.Empty.
Modified: trunk/MonoDevelop/Core/src/Main/Base/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/Main/Base/ChangeLog 2004-10-22 05:25:01 UTC (rev 1990)
+++ trunk/MonoDevelop/Core/src/Main/Base/ChangeLog 2004-10-22 05:27:40 UTC (rev 1991)
@@ -1,3 +1,8 @@
+2004-10-21 Chris Toshok <toshok at ximian.com>
+
+ * Gui/Workbench/DefaultWorkbench.cs: don't try to open
+ cur_dbgFilename if it's String.Empty.
+
2004-10-20 John Luke <john.luke at gmail.com>
* Commands/MenuItemBuilders.cs:
Modified: trunk/MonoDevelop/Core/src/Main/Base/Gui/Workbench/DefaultWorkbench.cs
===================================================================
--- trunk/MonoDevelop/Core/src/Main/Base/Gui/Workbench/DefaultWorkbench.cs 2004-10-22 05:25:01 UTC (rev 1990)
+++ trunk/MonoDevelop/Core/src/Main/Base/Gui/Workbench/DefaultWorkbench.cs 2004-10-22 05:27:40 UTC (rev 1991)
@@ -206,10 +206,12 @@
cur_dbgFilename = dbgr.CurrentFilename;
cur_dbgLineNumber = dbgr.CurrentLineNumber - 1;
- IFileService fs = (IFileService)ServiceManager.GetService (typeof (IFileService));
- fs.OpenFile (cur_dbgFilename);
- if (ActiveWorkbenchWindow.ViewContent is IDebuggableEditor)
- ((IDebuggableEditor)ActiveWorkbenchWindow.ViewContent).ExecutingAt (cur_dbgLineNumber);
+ if (cur_dbgFilename != String.Empty) {
+ IFileService fs = (IFileService)ServiceManager.GetService (typeof (IFileService));
+ fs.OpenFile (cur_dbgFilename);
+ if (ActiveWorkbenchWindow.ViewContent is IDebuggableEditor)
+ ((IDebuggableEditor)ActiveWorkbenchWindow.ViewContent).ExecutingAt (cur_dbgLineNumber);
+ }
}
}
More information about the Monodevelop-patches-list
mailing list