changeset 28351:2a4c4c7dfc88 stable

Set mainwindow new figure shortcuts correctly (Bug #58431) * libgui/src/main-window.cc (main_window::set_global_shortcuts): use duplicate m_new_function_action setShortcut for m_new_figure_action (main_window::configure_shortcuts): set sc_main_file_new_figure for m_new_figure_action,
author John Donoghue <john.donoghue@ieee.org>
date Fri, 22 May 2020 18:47:16 -0400
parents 8513a18439ca
children 60f3b8702ab7
files libgui/src/main-window.cc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/main-window.cc	Fri May 22 22:21:47 2020 -0400
+++ b/libgui/src/main-window.cc	Fri May 22 18:47:16 2020 -0400
@@ -1794,7 +1794,7 @@
         m_open_action->setShortcut (no_key);
         m_new_script_action->setShortcut (no_key);
         m_new_function_action->setShortcut (no_key);
-        m_new_function_action->setShortcut (no_key);
+        m_new_figure_action->setShortcut (no_key);
         m_load_workspace_action->setShortcut (no_key);
         m_save_workspace_action->setShortcut (no_key);
         m_preferences_action->setShortcut (no_key);
@@ -2760,7 +2760,7 @@
     scmgr.set_shortcut (m_open_action, sc_main_file_open_file);
     scmgr.set_shortcut (m_new_script_action, sc_main_file_new_file);
     scmgr.set_shortcut (m_new_function_action, sc_main_file_new_function);
-    scmgr.set_shortcut (m_new_function_action, sc_main_file_new_figure);
+    scmgr.set_shortcut (m_new_figure_action, sc_main_file_new_figure);
     scmgr.set_shortcut (m_load_workspace_action, sc_main_file_load_workspace);
     scmgr.set_shortcut (m_save_workspace_action, sc_main_file_save_workspace);
     scmgr.set_shortcut (m_exit_action, sc_main_file_exit);