Mercurial > octave
changeset 26735:48fbd27c6490 stable
fix the shortcut context for savin a variable in variable editor (bug #54464)
* variable-editor.cc (construct_tool_bar): add the action to the widget
itself and set the appropriate shortcut context
author | Torsten <mttl@mailbox.org> |
---|---|
date | Fri, 15 Feb 2019 20:02:35 +0100 |
parents | da8ebed6d56e |
children | fb920b730931 |
files | libgui/src/variable-editor.cc |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/variable-editor.cc Fri Feb 15 08:29:13 2019 -0800 +++ b/libgui/src/variable-editor.cc Fri Feb 15 20:02:35 2019 +0100 @@ -1609,6 +1609,8 @@ QAction *action; action = add_tool_bar_button (resource_manager::icon ("document-save"), tr ("Save"), this, SLOT (save ())); + addAction (action); + action->setShortcutContext (Qt::WidgetWithChildrenShortcut); action->setShortcuts (QKeySequence::Save); action->setStatusTip(tr("Save variable to a file"));