summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorAkshay Deep <akshaydeepiitr@gmail.com>2016-06-08 06:07:29 +0530
committerAkshay Deep <akshaydeepiitr@gmail.com>2016-06-08 14:42:29 +0000
commite73fc92829bbb4c06c951006fc7577131564ed67 (patch)
tree69274d522beb0109b1f48c8c1bc463f42b496235 /sfx2
parent32540a1e2339f00608ac689e6c4b8083a0007974 (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> (cherry picked from commit e07f23b148fe95b2418cb9dc5f1d335db8713c9f) Reviewed-on: https://gerrit.libreoffice.org/26065 Reviewed-by: Akshay Deep <akshaydeepiitr@gmail.com> Tested-by: Akshay Deep <akshaydeepiitr@gmail.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/templatelocalview.cxx1
-rw-r--r--sfx2/source/control/templatesearchview.cxx1
2 files changed, 2 insertions, 0 deletions
diff --git a/sfx2/source/control/templatelocalview.cxx b/sfx2/source/control/templatelocalview.cxx
index 0722eb12db61..b1e024217754 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();