summaryrefslogtreecommitdiff
path: root/frontends/cocoa/HistoryView.m
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/cocoa/HistoryView.m')
-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 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