summaryrefslogtreecommitdiff
path: root/sfx2/source/control/templatelocalview.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-10-02 09:16:39 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-10-02 14:20:57 +0200
commit947150821e985c255f6c802322e696eff4257a5d (patch)
treea15b4716a91e9f5306fb02cea3c661cb91852619 /sfx2/source/control/templatelocalview.cxx
parentd50eea97b3d2e1e1e47f7cdad4cb0c24fb0ed26d (diff)
extend popup handler to cover all CommandEvents
Change-Id: I26360ce5c696d0e571385d83a15876eb2286e12f Reviewed-on: https://gerrit.libreoffice.org/80021 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2/source/control/templatelocalview.cxx')
-rw-r--r--sfx2/source/control/templatelocalview.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sfx2/source/control/templatelocalview.cxx b/sfx2/source/control/templatelocalview.cxx
index 4ba55dead866..6eb22537e004 100644
--- a/sfx2/source/control/templatelocalview.cxx
+++ b/sfx2/source/control/templatelocalview.cxx
@@ -1157,8 +1157,11 @@ bool SfxTemplateLocalView::MouseButtonDown( const MouseEvent& rMEvt )
return SfxThumbnailView::MouseButtonDown(rMEvt);
}
-bool SfxTemplateLocalView::ContextMenu(const CommandEvent& rCEvt)
+bool SfxTemplateLocalView::Command(const CommandEvent& rCEvt)
{
+ if (rCEvt.GetCommand() != CommandEventId::ContextMenu)
+ return CustomWidgetController::Command(rCEvt);
+
if (rCEvt.IsMouseEvent())
{
deselectItems();