summaryrefslogtreecommitdiff
path: root/vcl/source/app
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-09-10 14:25:31 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-09-10 16:45:06 +0200
commitdffad40a50c42bd427dd0153d0022c4ec80cb93a (patch)
tree90869500d535f5cce8dfeaad5953b6858a0c009c /vcl/source/app
parent8e212f30b8597b64d354fc96954ee5023cb02166 (diff)
Related: tdf#131581 inhibit updates during other for_each variants
Change-Id: I74789006815b0ae04cfe5084d60d639241062896 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102383 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/app')
-rw-r--r--vcl/source/app/salvtables.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index a580ff22577c..16436ad0a666 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -4575,6 +4575,8 @@ public:
virtual void selected_foreach(const std::function<bool(weld::TreeIter&)>& func) override
{
+ UpdateGuard aGuard(*m_xTreeView);
+
SalInstanceTreeIter aVclIter(m_xTreeView->FirstSelected());
while (aVclIter.iter)
{
@@ -4586,6 +4588,8 @@ public:
virtual void visible_foreach(const std::function<bool(weld::TreeIter&)>& func) override
{
+ UpdateGuard aGuard(*m_xTreeView);
+
SalInstanceTreeIter aVclIter(m_xTreeView->GetFirstEntryInView());
while (aVclIter.iter)
{