[Libreoffice-commits] core.git: vcl/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Thu Sep 10 14:45:49 UTC 2020


 vcl/source/app/salvtables.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit dffad40a50c42bd427dd0153d0022c4ec80cb93a
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Sep 10 14:25:31 2020 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Sep 10 16:45:06 2020 +0200

    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 at redhat.com>

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)
         {


More information about the Libreoffice-commits mailing list