Fix ToolManager Has<T> function to check if a tool is disposed not just if it is in the tool list

This commit is contained in:
adelikat 2014-09-21 14:58:03 +00:00
parent 538c4632af
commit 56442d9f8d
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ namespace BizHawk.Client.EmuHawk
/// </summary>
public bool Has<T>() where T : IToolForm
{
return _tools.Any(x => x is T);
return _tools.Any(x => x is T && !x.IsDisposed);
}
/// <summary>