sd/source/ui/sidebar/RecentMasterPagesSelector.cxx |    7 -------
 sd/source/ui/sidebar/RecentMasterPagesSelector.hxx |    2 --
 2 files changed, 9 deletions(-)

New commits:
commit bac75eaed7d09f917497f59b021235b5eeb567ae
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Fri Feb 19 15:52:51 2021 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Fri Feb 19 20:43:13 2021 +0100

    RecentMasterPagesSelector menu has no "edit" entry
    
    its the same menu as MasterPagesSelector and the same "large" vs
    "small" enable/disable logic should be in use
    
    Change-Id: I3672c47299d585fbcec6fa2000fc0c84d6481ce1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111232
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sd/source/ui/sidebar/RecentMasterPagesSelector.cxx 
b/sd/source/ui/sidebar/RecentMasterPagesSelector.cxx
index 43949d410ecb..db5d92d0f6f7 100644
--- a/sd/source/ui/sidebar/RecentMasterPagesSelector.cxx
+++ b/sd/source/ui/sidebar/RecentMasterPagesSelector.cxx
@@ -139,13 +139,6 @@ void RecentMasterPagesSelector::AssignMasterPageToPageList 
(
     }
 }
 
-void RecentMasterPagesSelector::ProcessPopupMenu (Menu& rMenu)
-{
-    sal_uInt16 nItemid = rMenu.GetItemId("edit");
-    if (rMenu.GetItemPos(nItemid) != MENU_ITEM_NOTFOUND)
-        rMenu.EnableItem(nItemid, false);
-}
-
 } // end of namespace sd::sidebar
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sd/source/ui/sidebar/RecentMasterPagesSelector.hxx 
b/sd/source/ui/sidebar/RecentMasterPagesSelector.hxx
index bb4197951268..4040d1d13ff8 100644
--- a/sd/source/ui/sidebar/RecentMasterPagesSelector.hxx
+++ b/sd/source/ui/sidebar/RecentMasterPagesSelector.hxx
@@ -56,8 +56,6 @@ private:
         SdPage* pMasterPage,
         const std::shared_ptr<std::vector<SdPage*> >& rpPageList) override;
 
-    virtual void ProcessPopupMenu (Menu& rMenu) override;
-
     RecentMasterPagesSelector (
         vcl::Window* pParent,
         SdDrawDocument& rDocument,
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to