Fix crash on closing tab
This commit is contained in:
parent
46cd4697a4
commit
d763670ccd
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue