Mercurial > jwe > octave
changeset 27122:99adef2c6e10
Enable "Quit" menu item on Mac application menu (bug #56155)
* main-window.cc (construct_menu_bar): use setMenuRole to specify that "Exit"
menu item is of type QuitRole.
author | Pantxo Diribarne <pantxo.diribarne@gmail.com> |
---|---|
date | Mon, 27 May 2019 10:06:24 -0700 |
parents | e14e48e838fa |
children | c2a8365c73fc |
files | libgui/src/main-window.cc |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/main-window.cc Mon May 27 09:39:09 2019 -0700 +++ b/libgui/src/main-window.cc Mon May 27 10:06:24 2019 -0700 @@ -2069,6 +2069,7 @@ file_menu->addSeparator (); m_exit_action = file_menu->addAction (tr ("Exit")); + m_exit_action->setMenuRole (QAction::QuitRole); m_exit_action->setShortcutContext (Qt::ApplicationShortcut); connect (m_open_action, SIGNAL (triggered (void)),