diff options
author | Sven Weidauer <sven@5sw.de> | 2017-06-27 20:39:36 +0200 |
---|---|---|
committer | Sven Weidauer <sven@5sw.de> | 2017-06-27 20:39:36 +0200 |
commit | c3b7482ce67c7c408bc028b139b651f8b8118ca6 (patch) | |
tree | ed0030e0a8e2eeb8a55ce8c723c39b6dc8d59651 /frontends | |
parent | 246326c5b4b926f23c69a6cbf988769b85c9ef98 (diff) | |
download | netsurf-c3b7482ce67c7c408bc028b139b651f8b8118ca6.tar.gz netsurf-c3b7482ce67c7c408bc028b139b651f8b8118ca6.tar.bz2 |
Close history popover after selecting a page.
Diffstat (limited to 'frontends')
-rw-r--r-- | frontends/cocoa/HistoryView.m | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/frontends/cocoa/HistoryView.m b/frontends/cocoa/HistoryView.m index 798a3081e..f935f9fd1 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 |