[Libreoffice-commits] core.git: Branch 'libreoffice-7-0' - sc/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Mon Jun 15 01:49:31 UTC 2020
sc/source/ui/view/gridwin.cxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 47a9fcccb2bf8d66d97d37c59cea1b0e03792599
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Jun 14 18:26:24 2020 +0100
Commit: Adolfo Jayme Barrientos <fitojb at ubuntu.com>
CommitDate: Mon Jun 15 03:49:01 2020 +0200
tdf#133971 hold self-ref until we return
Change-Id: Iac1b79152c07915675a7dc562aaad9b4c465faa2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96280
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb at ubuntu.com>
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 32edc3e4bdea..0cf3171679cd 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -298,8 +298,11 @@ IMPL_LINK_NOARG(ScFilterListBox, SelectHdl, weld::TreeView&, bool)
IMPL_LINK_NOARG(ScFilterListBox, AsyncSelectHdl, void*, void)
{
- pGridWin->FilterSelect( nSel );
nAsyncSelectHdl = nullptr;
+
+ //tdf#133971 hold self-ref until we return
+ VclPtr<ScFilterListBox> xThis(this);
+ pGridWin->FilterSelect(nSel);
if (!pGridWin)
{
// tdf#133855 we got disposed by FilterSelect
More information about the Libreoffice-commits
mailing list