summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Weidauer <sven@5sw.de>2017-06-26 18:11:00 (GMT)
committer Sven Weidauer <sven@5sw.de>2017-06-26 18:11:00 (GMT)
commit80075c9368a76b2445900d7dc56d3d6c7cc0ee2d (patch)
tree7bd55384ccf77fe9314dfb44aa6c88666505c6a3
parentd51af2004b541c1d003fd11e202a10c981d418b6 (diff)
downloadnetsurf-80075c9368a76b2445900d7dc56d3d6c7cc0ee2d.tar.gz
netsurf-80075c9368a76b2445900d7dc56d3d6c7cc0ee2d.tar.bz2
Close window after closing the last tab.
-rw-r--r--frontends/cocoa/BrowserWindowController.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/frontends/cocoa/BrowserWindowController.m b/frontends/cocoa/BrowserWindowController.m
index 8607e4d..f44e4fb 100644
--- a/frontends/cocoa/BrowserWindowController.m
+++ b/frontends/cocoa/BrowserWindowController.m
@@ -178,6 +178,9 @@
- (IBAction)closeCurrentTab:(id)sender
{
[self removeTab:activeBrowser];
+ if (tabView.numberOfTabViewItems == 0) {
+ [self.window close];
+ }
}
- (void)setCanGoBack:(BOOL)can