Browse Source

Fixed SD2-937

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1595 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
David Alpert 19 years ago
parent
commit
8ed9f2a774
  1. 16
      src/Main/Base/Project/Src/Services/NavigationService/NavigationService.cs

16
src/Main/Base/Project/Src/Services/NavigationService/NavigationService.cs

@ -8,8 +8,9 @@ @@ -8,8 +8,9 @@
using System;
using System.Collections.Generic;
using ICSharpCode.SharpDevelop.Gui;
using ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor;
using ICSharpCode.SharpDevelop.Gui;
using ICSharpCode.SharpDevelop.Project;
using ICSharpCode.TextEditor;
namespace ICSharpCode.Core
@ -49,14 +50,12 @@ namespace ICSharpCode.Core @@ -49,14 +50,12 @@ namespace ICSharpCode.Core
static bool loggingSuspended; // autoinitialized to false (FxCop)
#endregion
// TODO: FxCop says "find another way to do this" (ReviewVisibleEventHandlers)
static NavigationService()
{
// history = new LinkedList<INavigationPoint>();
// currentNode = null;
// loggingSuspended = false;
{
WorkbenchSingleton.WorkbenchCreated += WorkbenchCreatedHandler;
FileService.FileRenamed += FileService_FileRenamed;
ProjectService.SolutionClosed += ProjectService_SolutionClosed;
}
#region Public Properties
@ -303,6 +302,11 @@ namespace ICSharpCode.Core @@ -303,6 +302,11 @@ namespace ICSharpCode.Core
}
}
static void ProjectService_SolutionClosed(object sender, EventArgs e)
{
NavigationService.ClearHistory(true);
}
#endregion

Loading…
Cancel
Save