[Libreoffice-commits] core.git: sfx2/source
Akshay Deep
akshaydeepiitr at gmail.com
Wed May 25 09:04:02 UTC 2016
sfx2/source/doc/templatedlg.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit dc24a1d86c2bb3232c734b1a9d098f7331f47f99
Author: Akshay Deep <akshaydeepiitr at gmail.com>
Date: Tue May 24 13:59:43 2016 +0530
Creating a new category on move should update the category list
Change-Id: I54ba75056d8fa47ff2153914182ad354da7c07f6
Reviewed-on: https://gerrit.libreoffice.org/25398
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index 3bec66b..e9279fc 100644
--- a/sfx2/source/doc/templatedlg.cxx
+++ b/sfx2/source/doc/templatedlg.cxx
@@ -612,7 +612,11 @@ IMPL_LINK_NOARG_TYPED(SfxTemplateManagerDlg, MoveClickHdl, Button*, void)
if(bIsNewCategory)
{
if (!sCategory.isEmpty())
+ {
nItemId = mpLocalView->createRegion(sCategory);
+ if(nItemId)
+ mpCBFolder->InsertEntry(sCategory);
+ }
}
else
{
More information about the Libreoffice-commits
mailing list