From 6d167e94f40578837b7a93451592d96639d98dbd Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Mon, 24 Jul 2023 10:33:20 +0200 Subject: [PATCH] Add accelerators --- src/frontends/qt/GuiWorkArea.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt/GuiWorkArea.cpp b/src/frontends/qt/GuiWorkArea.cpp index de3f70b338..ef91e0b7fd 100644 --- a/src/frontends/qt/GuiWorkArea.cpp +++ b/src/frontends/qt/GuiWorkArea.cpp @@ -2085,13 +2085,13 @@ void TabWorkArea::showContextMenu(const QPoint & pos) // show tab popup QMenu popup; popup.addAction(QIcon(getPixmap("images/", "hidetab", "svgz,png")), - qt_("Hide Tab"), this, SLOT(hideCurrentTab())); + qt_("&Hide Tab"), this, SLOT(hideCurrentTab())); // we want to show the 'close' option only if this is not a child buffer. Buffer const & buf = wa->bufferView().buffer(); if (!buf.parent()) popup.addAction(QIcon(getPixmap("images/", "closetab", "svgz,png")), - qt_("Close Tab"), this, SLOT(closeCurrentBuffer())); + qt_("&Close Tab"), this, SLOT(closeCurrentBuffer())); popup.exec(tabBar()->mapToGlobal(pos)); clicked_tab_ = -1; -- 2.39.5