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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Mon Aug 30 18:45:20 UTC 2021


 sw/source/ui/dbui/mmaddressblockpage.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 03e108f27b91dddc8fabc6f52f18afd6aac8666a
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Aug 30 14:37:15 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Aug 30 20:44:46 2021 +0200

    tdf#144105 crash after closing edit address block dialog
    
    use RemoveView to call RemoveDragAndDropListeners before shutdown to
    avoid RemoveDragAndDropListeners getting called during dtor and
    calling EditViewCallbacks::GetDropTarget on the destroyed host
    widget controller
    
    Change-Id: I63841b893d37d45cc44a0ffbaa534cf87c407615
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121310
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/ui/dbui/mmaddressblockpage.cxx b/sw/source/ui/dbui/mmaddressblockpage.cxx
index e62f18352f1c..65bdcfbc4030 100644
--- a/sw/source/ui/dbui/mmaddressblockpage.cxx
+++ b/sw/source/ui/dbui/mmaddressblockpage.cxx
@@ -1068,6 +1068,7 @@ void AddressMultiLineEdit::EndDropTarget()
 {
     if (m_xDropTarget.is())
     {
+        m_xEditEngine->RemoveView(m_xEditView.get());
         auto xRealDropTarget = GetDrawingArea()->get_drop_target();
         uno::Reference<css::datatransfer::dnd::XDropTargetListener> xListener(m_xDropTarget, uno::UNO_QUERY);
         xRealDropTarget->removeDropTargetListener(xListener);


More information about the Libreoffice-commits mailing list