From 6e07375f92f79959cc9288bb2a3b237b480e952c Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 30 Apr 2019 09:13:26 +0100 Subject: Resolves: tdf#124920 insert section from clipboard dialog doesn't cancel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ic85cea08a9730cbd87d4ba1344ee6ddaa1b9d7bb Reviewed-on: https://gerrit.libreoffice.org/71567 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sw/source/uibase/dialog/regionsw.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sw/source/uibase/dialog') 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 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) -- cgit