[Libreoffice-commits] core.git: Branch 'libreoffice-5-2' - sfx2/source
Akshay Deep
akshaydeepiitr at gmail.com
Wed Jun 8 14:42:51 UTC 2016
sfx2/source/control/templatelocalview.cxx | 1 +
sfx2/source/control/templatesearchview.cxx | 1 +
2 files changed, 2 insertions(+)
New commits:
commit e73fc92829bbb4c06c951006fc7577131564ed67
Author: Akshay Deep <akshaydeepiitr at gmail.com>
Date: Wed Jun 8 06:07:29 2016 +0530
Template Manager: Enable "Move" and "Export" buttons on right click
Change-Id: Ibdf3d0cd721333730638e71d2d5258092074af93
Reviewed-on: https://gerrit.libreoffice.org/26042
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
(cherry picked from commit e07f23b148fe95b2418cb9dc5f1d335db8713c9f)
Reviewed-on: https://gerrit.libreoffice.org/26065
Reviewed-by: Akshay Deep <akshaydeepiitr at gmail.com>
Tested-by: Akshay Deep <akshaydeepiitr at gmail.com>
diff --git a/sfx2/source/control/templatelocalview.cxx b/sfx2/source/control/templatelocalview.cxx
index 0722eb1..b1e0242 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 e5754d9..ab2f489 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();
More information about the Libreoffice-commits
mailing list