Fixed tab closing leaving the URL bar disconnected from the current tab
svn path=/trunk/netsurf/; revision=11423
This commit is contained in:
parent
699f0cb344
commit
010ac0c181
|
@ -132,8 +132,12 @@ extern NSString * const kHomepageURL;
|
|||
- (void) tabView: (NSTabView *)aTabView didCloseTabViewItem: (NSTabViewItem *)tabViewItem;
|
||||
{
|
||||
[tabViewItem unbind: @"label"];
|
||||
|
||||
if (activeBrowser == [tabViewItem identifier]) {
|
||||
[self setActiveBrowser: nil];
|
||||
}
|
||||
|
||||
browser_window_destroy( [[tabViewItem identifier] browser] );
|
||||
[self setActiveBrowser: nil];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in New Issue