Fixed tab closing leaving the URL bar disconnected from the current tab

svn path=/trunk/netsurf/; revision=11423
This commit is contained in:
Sven Weidauer 2011-01-20 14:17:15 +00:00
parent 699f0cb344
commit 010ac0c181
1 changed files with 5 additions and 1 deletions

View File

@ -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