octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #56155] [Mac] quit menu item disabled after la


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #56155] [Mac] quit menu item disabled after launch
Date: Thu, 18 Apr 2019 15:27:37 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0

Follow-up Comment #11, bug #56155 (project octave):

Or maybe something along those lines could help:


--- a/libgui/src/main-window.cc Wed Apr 17 20:35:52 2019 +0000
+++ b/libgui/src/main-window.cc Thu Apr 18 21:15:37 2019 +0200
@@ -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)),



The MenuRole seams to be a hint for Qt to handle native menu entries on Mac.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56155>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]