macOS: Fix crash when triggering some global menu actions with the mouse

This commit is contained in:
Kovid Goyal
2018-06-06 22:53:07 +05:30
parent 2e8d19601b
commit ad44e1a515
3 changed files with 25 additions and 2 deletions

View File

@@ -65,12 +65,12 @@ find_app_name(void) {
- (void) show_preferences : (id)sender {
(void)sender;
call_boss(edit_config_file, NULL);
set_cocoa_pending_action(PREFERENCES_WINDOW);
}
- (void) new_os_window : (id)sender {
(void)sender;
call_boss(new_os_window, NULL);
set_cocoa_pending_action(NEW_OS_WINDOW);
}