diff options
author | Akshay Deep <akshaydeepiitr@gmail.com> | 2016-06-02 16:06:12 +0530 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2016-06-06 07:05:47 +0000 |
commit | a6ea18a9cc83a85f4bf4fce78b7dbef3d1a419c6 (patch) | |
tree | 0e455385028d6fd3c5ed00436081027e38ede7f7 /sfx2/source/doc/templatedlg.cxx | |
parent | 268a518a1ac1698a769dbce17e52ac99d7737ac4 (diff) |
Mark Default Templates in Template Manager
Change-Id: I1dff486605efce09e862d2924b24949601ae0f17
Reviewed-on: https://gerrit.libreoffice.org/25816
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sfx2/source/doc/templatedlg.cxx')
-rw-r--r-- | sfx2/source/doc/templatedlg.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx index 54b22b329132..14181cfe3f22 100644 --- a/sfx2/source/doc/templatedlg.cxx +++ b/sfx2/source/doc/templatedlg.cxx @@ -855,7 +855,12 @@ IMPL_LINK_TYPED(SfxTemplateManagerDlg, DefaultTemplateHdl, ThumbnailViewItem*, p OUString aServiceName; if (lcl_getServiceName(pViewItem->getPath(),aServiceName)) { + OUString sPrevDefault = SfxObjectFactory::GetStandardTemplate( aServiceName ); + if(!sPrevDefault.isEmpty()) + mpLocalView->RemoveDefaultTemplateIcon(sPrevDefault); + SfxObjectFactory::SetStandardTemplate(aServiceName,pViewItem->getPath()); + pViewItem->showDefaultIcon(true); createDefaultTemplateMenu(); } |