Tastudio Branches - when removing the current branch, clear the CurrentBranch flag

This commit is contained in:
adelikat 2015-07-25 12:07:22 -04:00
parent 819a13a6f0
commit 1070fceaa5
1 changed files with 5 additions and 0 deletions

View File

@ -160,6 +160,11 @@ namespace BizHawk.Client.EmuHawk
{
if (SelectedBranch != null)
{
if (Branches.IndexOf(SelectedBranch) == CurrentBranch)
{
CurrentBranch = -1;
}
Branches.Remove(SelectedBranch);
BranchView.RowCount = Branches.Count;
BranchView.Refresh();