summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Weidauer <sven@5sw.de>2017-06-27 18:39:36 (GMT)
committer Sven Weidauer <sven@5sw.de>2017-06-27 18:39:36 (GMT)
commitc3b7482ce67c7c408bc028b139b651f8b8118ca6 (patch)
treeed0030e0a8e2eeb8a55ce8c723c39b6dc8d59651
parent246326c5b4b926f23c69a6cbf988769b85c9ef98 (diff)
downloadnetsurf-c3b7482ce67c7c408bc028b139b651f8b8118ca6.tar.gz
netsurf-c3b7482ce67c7c408bc028b139b651f8b8118ca6.tar.bz2
Close history popover after selecting a page.
-rw-r--r--frontends/cocoa/HistoryView.m6
1 files changed, 5 insertions, 1 deletions
diff --git a/frontends/cocoa/HistoryView.m b/frontends/cocoa/HistoryView.m
index 798a308..f935f9f 100644
--- a/frontends/cocoa/HistoryView.m
+++ b/frontends/cocoa/HistoryView.m
@@ -121,7 +121,11 @@ static struct core_window_callback_table history_view_table = {
state = BROWSER_MOUSE_PRESS_2;
}
- local_history_mouse_action(_session, state, cocoa_pt_to_px(location.x), cocoa_pt_to_px(location.y));
+ nserror res = local_history_mouse_action(_session, state, cocoa_pt_to_px(location.x), cocoa_pt_to_px(location.y));
+
+ if (res == NSERROR_OK) {
+ self.browser.historyVisible = NO;
+ }
}
- (BOOL)isFlipped