Fix crash on closing tab

This commit is contained in:
anthony 2021-03-01 20:14:23 +00:00
parent 46cd4697a4
commit d763670ccd
1 changed files with 3 additions and 0 deletions

View File

@ -153,6 +153,9 @@ static id newTabTarget;
}
[tabView removeTabViewItem: [tab tabItem]];
[tabs removeObjectAtIndex: idx];
if (activeTab == tab) {
activeTab = nil;
}
if ([tabs count] < 1) {
[super close];
} else {