diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2019-06-07 12:06:13 +0300 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2019-06-13 23:18:34 +0200 |
commit | 1b39bae5debe3bf952449bd7d2910defcea92b9e (patch) | |
tree | 715d354dc48b0395673c0b4fb5458882ba664a7e /sw | |
parent | 7fb6f10c92d21681e9b0fa722ac9329cf3b8e5a2 (diff) |
tdf#125146 Use correct id for reply command item
This was overlooked in commit
a10b4fd2bc08651d47bdb19bb8ab9c1f8f3d4851
("convert annotation menu to .ui").
Change-Id: Ia9e44460394e60f9c2ae767fbb2a07414fa07cf7
Reviewed-on: https://gerrit.libreoffice.org/73971
Tested-by: Jenkins
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/docvw/AnnotationMenuButton.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/uibase/docvw/AnnotationMenuButton.cxx b/sw/source/uibase/docvw/AnnotationMenuButton.cxx index 51a7d809d7cc..c8996bdc3554 100644 --- a/sw/source/uibase/docvw/AnnotationMenuButton.cxx +++ b/sw/source/uibase/docvw/AnnotationMenuButton.cxx @@ -102,7 +102,7 @@ void AnnotationMenuButton::MouseButtonDown( const MouseEvent& rMEvt ) if (mrSidebarWin.IsProtected()) { - pButtonPopup->EnableItem(FN_REPLY, false); + pButtonPopup->EnableItem(pButtonPopup->GetItemId("reply"), false); } else { @@ -118,11 +118,11 @@ void AnnotationMenuButton::MouseButtonDown( const MouseEvent& rMEvt ) // do not allow to reply to ourself and no answer possible if this note is in a protected section if (sAuthor == mrSidebarWin.GetAuthor()) { - pButtonPopup->EnableItem(FN_REPLY, false); + pButtonPopup->EnableItem(pButtonPopup->GetItemId("reply"), false); } else { - pButtonPopup->EnableItem(FN_REPLY); + pButtonPopup->EnableItem(pButtonPopup->GetItemId("reply")); } } |