diff options
author | Akshay Deep <akshaydeepiitr@gmail.com> | 2016-06-08 06:07:29 +0530 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2016-06-08 12:38:59 +0000 |
commit | e07f23b148fe95b2418cb9dc5f1d335db8713c9f (patch) | |
tree | 5216968f2cbeeea30031792f336ed5bd5f947c4f | |
parent | 06eba148481b9eeeff3ea30ea73f2ea3765bd92f (diff) |
Template Manager: Enable "Move" and "Export" buttons on right click
Change-Id: Ibdf3d0cd721333730638e71d2d5258092074af93
Reviewed-on: https://gerrit.libreoffice.org/26042
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
-rw-r--r-- | sfx2/source/control/templatelocalview.cxx | 1 | ||||
-rw-r--r-- | sfx2/source/control/templatesearchview.cxx | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sfx2/source/control/templatelocalview.cxx b/sfx2/source/control/templatelocalview.cxx index cd3642bf7d1a..533ee6babc8f 100644 --- a/sfx2/source/control/templatelocalview.cxx +++ b/sfx2/source/control/templatelocalview.cxx @@ -195,6 +195,7 @@ void TemplateLocalView::createContextMenu(const bool bIsDefault) pItemMenu->InsertSeparator(); deselectItems(); maSelectedItem->setSelection(true); + maItemStateHdl.Call(maSelectedItem); pItemMenu->SetSelectHdl(LINK(this, TemplateLocalView, ContextMenuSelectHdl)); pItemMenu->Execute(this, Rectangle(maPosition,Size(1,1)), PopupMenuFlags::ExecuteDown); Invalidate(); diff --git a/sfx2/source/control/templatesearchview.cxx b/sfx2/source/control/templatesearchview.cxx index e5754d998391..ab2f48960b14 100644 --- a/sfx2/source/control/templatesearchview.cxx +++ b/sfx2/source/control/templatesearchview.cxx @@ -67,6 +67,7 @@ void TemplateSearchView::createContextMenu( const bool bIsDefault) pItemMenu->InsertSeparator(); pItemMenu->InsertItem(MNI_DELETE,SfxResId(STR_DELETE).toString()); maSelectedItem->setSelection(true); + maItemStateHdl.Call(maSelectedItem); pItemMenu->SetSelectHdl(LINK(this, TemplateSearchView, ContextMenuSelectHdl)); pItemMenu->Execute(this, Rectangle(maPosition,Size(1,1)), PopupMenuFlags::ExecuteDown); Invalidate(); |