Fixed bug where closing a non-active document blanked the tool windows for the current document

This commit is contained in:
Ben 2015-06-23 21:59:26 +01:00
parent e3505b3575
commit 29ed02e172
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ namespace Filtration.ViewModels
throw new ArgumentException("CloseDocument called with non-existant document"); throw new ArgumentException("CloseDocument called with non-existant document");
} }
if (document.IsScript) if (document.IsScript && ActiveDocument == document)
{ {
_sectionBrowserViewModel.ClearDown(); _sectionBrowserViewModel.ClearDown();
_blockGroupBrowserViewModel.ClearDown(); _blockGroupBrowserViewModel.ClearDown();