sfx2/source/dialog/backingwindow.cxx | 5 ----- 1 file changed, 5 deletions(-)
New commits: commit cc4951d4042b7dd7635ec77c972350b59d609afc Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Wed Aug 4 17:34:09 2021 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Wed Aug 4 20:35:47 2021 +0200 AutoAccel is only true for gtk and there BackingWindow doesn't use vcl widgets so we can remove Accelerator::ToggleMnemonicsOnHierarchy here without any effect Change-Id: Ie7e8373c110216294dc4087d6ca1913bf8b25404 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120007 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx index f58bf46329b0..3a95cef10e51 100644 --- a/sfx2/source/dialog/backingwindow.cxx +++ b/sfx2/source/dialog/backingwindow.cxx @@ -18,7 +18,6 @@ */ #include "backingwindow.hxx" -#include <vcl/accel.hxx> #include <vcl/event.hxx> #include <vcl/help.hxx> #include <vcl/ptrstyle.hxx> @@ -459,10 +458,6 @@ bool BackingWindow::PreNotify(NotifyEvent& rNEvt) if ((aCommand != "vnd.sun.star.findbar:FocusToFindbar") && pEvt && mpAccExec->execute(rKeyCode)) return true; } - else if (rNEvt.GetType() == MouseNotifyEvent::COMMAND) - { - Accelerator::ToggleMnemonicsOnHierarchy(*rNEvt.GetCommandEvent(), this); - } return InterimItemWindow::PreNotify( rNEvt ); }