sfx2/source/control/templatelocalview.cxx  |    1 +
 sfx2/source/control/templatesearchview.cxx |    1 +
 2 files changed, 2 insertions(+)

New commits:
commit e73fc92829bbb4c06c951006fc7577131564ed67
Author: Akshay Deep <akshaydeepi...@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 <c...@libreoffice.org>
    Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@cib.de>
    (cherry picked from commit e07f23b148fe95b2418cb9dc5f1d335db8713c9f)
    Reviewed-on: https://gerrit.libreoffice.org/26065
    Reviewed-by: Akshay Deep <akshaydeepi...@gmail.com>
    Tested-by: Akshay Deep <akshaydeepi...@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();
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to