summaryrefslogtreecommitdiff
path: root/vcl/qt5
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-08-04 20:26:35 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-08-05 11:51:11 +0200
commit1a5bee9d18c9d7a8db0f9f011a0d2224d687e327 (patch)
tree3f6544f321677056a1f117efad0deec2d2fe70e0 /vcl/qt5
parent7a8d7c9bd97dd52bde2182e395167f2e3cc9fda6 (diff)
vcl::KeyCode::GetName doesn't need a specific vcl::Window
any will do Change-Id: Ice1875d9b9e1cd46ecbc6e306c77768dc0b07dbd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120029 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/qt5')
-rw-r--r--vcl/qt5/Qt5Menu.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/vcl/qt5/Qt5Menu.cxx b/vcl/qt5/Qt5Menu.cxx
index 75ab745de2b4..e8a170407281 100644
--- a/vcl/qt5/Qt5Menu.cxx
+++ b/vcl/qt5/Qt5Menu.cxx
@@ -158,9 +158,7 @@ void Qt5Menu::InsertMenuItem(Qt5MenuItem* pSalMenuItem, unsigned nPos)
UpdateActionGroupItem(pSalMenuItem);
- const Qt5Frame* pFrame = GetFrame();
- if (pFrame)
- pAction->setShortcut(toQString(nAccelKey.GetName(pFrame->GetWindow())));
+ pAction->setShortcut(toQString(nAccelKey.GetName()));
connect(pAction, &QAction::triggered, this,
[pSalMenuItem] { slotMenuTriggered(pSalMenuItem); });