diff options
author | Mike Krüger <mkrueger@novell.com> | 2010-04-29 12:25:43 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@novell.com> | 2010-04-29 12:25:43 +0400 |
commit | ae0bcb07aa5c37a050f348e3d89a1783214fcac5 (patch) | |
tree | 99ff0c39c4354a02e2e35b571fcddbcfd60d6910 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui | |
parent | c6aa8283e16a30ce6da11e0d9791d4859a2a12b0 (diff) |
* MonoDevelop.Ide.Gui/Workbench.cs:
* MonoDevelop.Ide.Gui/DocumentNavigationPoint.cs: Fixed 'Bug 600657 -
"Show Previous Warning/Error" fails when there are warnings without
file offsets'.
svn path=/trunk/monodevelop/; revision=156400
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/DocumentNavigationPoint.cs | 3 | ||||
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/DocumentNavigationPoint.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/DocumentNavigationPoint.cs index 7786334a5f..319943d4e4 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/DocumentNavigationPoint.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/DocumentNavigationPoint.cs @@ -66,7 +66,8 @@ namespace MonoDevelop.Ide.Gui public override void Show () { - DoShow (); + if (!string.IsNullOrEmpty (fileName)) + DoShow (); } protected virtual Document DoShow () diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs index a939537174..aa09aea56e 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs @@ -362,6 +362,8 @@ namespace MonoDevelop.Ide.Gui internal Document OpenDocument (FilePath fileName, int line, int column, bool bringToFront, string encoding, IDisplayBinding binding, bool highlightCaretLine) { + if (string.IsNullOrEmpty (fileName)) + return null; using (Counters.OpenDocumentTimer.BeginTiming ("Opening file " + fileName)) { NavigationHistoryService.LogActiveDocument (); |