Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/3825

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/25/3825/1

Solve fdo#64359 Duplicate template in list when overwriting existing template

This patch just ensures an updates/refreshed view when a duplicate template
is saved.

Change-Id: Iebe301216f3131db72ff97d2b81003eefc0b0dbf
---
M sfx2/source/doc/templatedlg.cxx
1 file changed, 4 insertions(+), 3 deletions(-)



diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index b7c4582..b06c706 100644
--- a/sfx2/source/doc/templatedlg.cxx
+++ b/sfx2/source/doc/templatedlg.cxx
@@ -1056,11 +1056,10 @@
         OUString aTemplateList;
         INetURLObject aPathObj(xFolderPicker->getDirectory());
         aPathObj.setFinalSlash();
+        sal_uInt16 i = 1;
 
         if (mpSearchView->IsVisible())
         {
-            sal_uInt16 i = 1;
-
             std::set<const 
ThumbnailViewItem*,selection_cmp_fn>::const_iterator pIter = 
maSelTemplates.begin();
             for (pIter = maSelTemplates.begin(); pIter != 
maSelTemplates.end(); ++pIter, ++i)
             {
@@ -1090,7 +1089,6 @@
         {
             // export templates from the current view
 
-            sal_uInt16 i = 1;
             sal_uInt16 nRegionItemId = maView->getCurRegionItemId();
 
             std::set<const 
ThumbnailViewItem*,selection_cmp_fn>::const_iterator pIter = 
maSelTemplates.begin();
@@ -1400,6 +1398,9 @@
             if (!aFolderList.isEmpty())
             {
             }
+
+            //refresh view
+            mpCurView->reload();
         }
     }
 }

-- 
To view, visit https://gerrit.libreoffice.org/3825
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iebe301216f3131db72ff97d2b81003eefc0b0dbf
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Joren De Cuyper <joren.libreoff...@telenet.be>

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to