From 1b39bae5debe3bf952449bd7d2910defcea92b9e Mon Sep 17 00:00:00 2001 From: Maxim Monastirsky Date: Fri, 7 Jun 2019 12:06:13 +0300 Subject: 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 --- sw/source/uibase/docvw/AnnotationMenuButton.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sw/source/uibase/docvw/AnnotationMenuButton.cxx') 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")); } } -- cgit