sw/source/uibase/dialog/regionsw.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 6e07375f92f79959cc9288bb2a3b237b480e952c
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Tue Apr 30 09:13:26 2019 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Tue Apr 30 12:31:10 2019 +0200

    Resolves: tdf#124920 insert section from clipboard dialog doesn't cancel
    
    Change-Id: Ic85cea08a9730cbd87d4ba1344ee6ddaa1b9d7bb
    Reviewed-on: https://gerrit.libreoffice.org/71567
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sw/source/uibase/dialog/regionsw.cxx 
b/sw/source/uibase/dialog/regionsw.cxx
index 96b1a2fd9ce9..e513cbed436d 100644
--- a/sw/source/uibase/dialog/regionsw.cxx
+++ b/sw/source/uibase/dialog/regionsw.cxx
@@ -192,7 +192,9 @@ void SwWrtShell::StartInsertRegionDialog(const 
SwSectionData& rSectionData)
     VclPtr<AbstractInsertSectionTabDialog> 
aTabDlg(pFact->CreateInsertSectionTabDialog(
         GetView().GetViewFrame()->GetWindow().GetFrameWeld(), aSet, *this));
     aTabDlg->SetSectionData(rSectionData);
-    aTabDlg->StartExecuteAsync(nullptr);
+    aTabDlg->StartExecuteAsync([aTabDlg](sal_Int32 /*nResult*/){
+        aTabDlg->disposeOnce();
+    });
 }
 
 void SwBaseShell::EditRegionDialog(SfxRequest const & rReq)
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to