Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


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.libreoffice@telenet.be>


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.