Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Krüger <mkrueger@novell.com>2010-04-29 12:25:43 +0400
committerMike Krüger <mkrueger@novell.com>2010-04-29 12:25:43 +0400
commitae0bcb07aa5c37a050f348e3d89a1783214fcac5 (patch)
tree99ff0c39c4354a02e2e35b571fcddbcfd60d6910 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui
parentc6aa8283e16a30ce6da11e0d9791d4859a2a12b0 (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.cs3
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs2
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 ();