sfx2/source/doc/templatedlg.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit dc24a1d86c2bb3232c734b1a9d098f7331f47f99
Author: Akshay Deep <akshaydeepi...@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 <c...@libreoffice.org>
    Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@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
         {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to