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

View File

@ -132,8 +132,12 @@ extern NSString * const kHomepageURL;
- (void) tabView: (NSTabView *)aTabView didCloseTabViewItem: (NSTabViewItem *)tabViewItem;
{
[tabViewItem unbind: @"label"];
browser_window_destroy( [[tabViewItem identifier] browser] );
if (activeBrowser == [tabViewItem identifier]) {
[self setActiveBrowser: nil];
}
browser_window_destroy( [[tabViewItem identifier] browser] );
}
@end