[Libreoffice-commits] core.git: sfx2/source
Vert D (via logerrit)
logerrit at kemper.freedesktop.org
Tue Mar 30 09:33:26 UTC 2021
sfx2/source/control/templatedlglocalview.cxx | 3 ++-
sfx2/source/control/templatelocalview.cxx | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
New commits:
commit f974664988d84a32196c152a3cf996e2b4909f70
Author: Vert D <devoptmsoi at gmx.com>
AuthorDate: Mon Mar 29 16:57:06 2021 -0500
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Tue Mar 30 11:32:43 2021 +0200
tdf#141329 fix refresh shows the wrong category
Change-Id: Iec36c7aa4cb54773a759260638f03b1b218faaa0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113332
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/sfx2/source/control/templatedlglocalview.cxx b/sfx2/source/control/templatedlglocalview.cxx
index d444ec49464b..0adc30d8b97e 100644
--- a/sfx2/source/control/templatedlglocalview.cxx
+++ b/sfx2/source/control/templatedlglocalview.cxx
@@ -69,8 +69,9 @@ void TemplateDlgLocalView::showRegion(std::u16string_view rName)
void TemplateDlgLocalView::reload()
{
mpDocTemplates->Update();
-
+ OUString sCurRegionName = getRegionItemName(mnCurRegionId);
Populate();
+ mnCurRegionId = getRegionId(sCurRegionName);
// Check if we are currently browsing a region or root folder
if (mnCurRegionId)
diff --git a/sfx2/source/control/templatelocalview.cxx b/sfx2/source/control/templatelocalview.cxx
index 87e07fd30642..4dcbaa3ba0b6 100644
--- a/sfx2/source/control/templatelocalview.cxx
+++ b/sfx2/source/control/templatelocalview.cxx
@@ -140,8 +140,9 @@ void TemplateLocalView::Populate()
void TemplateLocalView::reload()
{
mpDocTemplates->Update();
-
+ OUString sCurRegionName = getRegionItemName(mnCurRegionId);
Populate();
+ mnCurRegionId = getRegionId(sCurRegionName);
// Check if we are currently browsing a region or root folder
if (mnCurRegionId)
More information about the Libreoffice-commits
mailing list