diff options
author | Lluis Sanchez <lluis@novell.com> | 2010-04-30 15:19:01 +0400 |
---|---|---|
committer | Lluis Sanchez <lluis@novell.com> | 2010-04-30 15:19:01 +0400 |
commit | b98c8a8fa836e6a87e66efce6043be199710a3c9 (patch) | |
tree | 9320e8208738721e731a28b3fde4a2a3fadb7619 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks | |
parent | 56b95c67740366a1f18237714fde3e8583c7da74 (diff) |
* MonoDevelop.Ide.Tasks/TaskStore.cs: Don't generate navigation
points for tasks which don't have a file name.
* MonoDevelop.Ide.Gui/Workbench.cs:
* MonoDevelop.Ide.Gui/DocumentNavigationPoint.cs: Revert check for
return value of Show, since it should always work.
* MonoDevelop.Ide.Gui/TextFileNavigationPoint.cs:
* MonoDevelop.Ide.Gui/NavigationHistoryService.cs: Improved navigation
point logging logic.
* MonoDevelop.Ide.Gui/TextEditor.cs: New event.
svn path=/trunk/monodevelop/; revision=156510
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/TaskStore.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/TaskStore.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/TaskStore.cs index 285707b0cf..dd33784dd2 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/TaskStore.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/TaskStore.cs @@ -377,7 +377,8 @@ namespace MonoDevelop.Ide.Tasks n++; } - while (n != -1 && n < tasks.Count && (iteratingSeverity != tasks [n].Severity)) + // Jump over tasks with different severity or with no file name + while (n != -1 && n < tasks.Count && (iteratingSeverity != tasks [n].Severity || string.IsNullOrEmpty (tasks [n].FileName))) n++; Task ct = n != -1 && n < tasks.Count ? tasks [n] : null; @@ -423,7 +424,7 @@ namespace MonoDevelop.Ide.Tasks n--; } - while (n != -1 && n < tasks.Count && (iteratingSeverity != tasks [n].Severity)) + while (n != -1 && n < tasks.Count && (iteratingSeverity != tasks [n].Severity || string.IsNullOrEmpty (tasks [n].FileName))) n--; Task ct = n != -1 && n < tasks.Count ? tasks [n] : null; |