From c5820f0c0fbfe67d0342efa57632123362bc2d70 Mon Sep 17 00:00:00 2001 From: Morilli <35152647+Morilli@users.noreply.github.com> Date: Fri, 12 Jul 2024 06:03:14 +0200 Subject: [PATCH] TAStudio: don't select branch when none exists -closes #3967 --- .../tools/TAStudio/BookmarksBranchesBox.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/BizHawk.Client.EmuHawk/tools/TAStudio/BookmarksBranchesBox.cs b/src/BizHawk.Client.EmuHawk/tools/TAStudio/BookmarksBranchesBox.cs index 5b73af430f..49786f5a37 100644 --- a/src/BizHawk.Client.EmuHawk/tools/TAStudio/BookmarksBranchesBox.cs +++ b/src/BizHawk.Client.EmuHawk/tools/TAStudio/BookmarksBranchesBox.cs @@ -480,8 +480,11 @@ public void SelectBranchExternal(bool next) { if (SelectedBranch == null) { - Select(Branches.Current, true); - BranchView.Refresh(); + if (Branches.Current != -1) + { + Select(Branches.Current, true); + BranchView.Refresh(); + } return; }