From 66e8ab8823507cb16c01df80d288cf8f0105e9aa Mon Sep 17 00:00:00 2001 From: Joseph Battelle Date: Sun, 31 Jan 2021 20:31:10 -0800 Subject: [PATCH] Fix close of inactive IDE tab without closing pane When you close an inactive IDE tab, the 'nextTab' is null instead of the already active one. This then results in the entire pane closing even with tabs remaining. Ensuring nextTab is always valid keeps the pane open. This may fix issue #619 as the behavior described is similar. --- IDE/src/IDEApp.bf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/IDE/src/IDEApp.bf b/IDE/src/IDEApp.bf index b8c347b6..7105f147 100644 --- a/IDE/src/IDEApp.bf +++ b/IDE/src/IDEApp.bf @@ -6588,6 +6588,9 @@ namespace IDE nextTab = checkTab; }); } + else { + nextTab = tabbedView.GetActiveTab(); + } tabbedView.RemoveTab(tabButton); if (nextTab != null)