diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-04-30 09:13:26 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-04-30 12:31:10 +0200 |
commit | 6e07375f92f79959cc9288bb2a3b237b480e952c (patch) | |
tree | 00c077b14ad7257b757b196c84953eeb358eb8ff /sw/source/uibase/dialog | |
parent | e1a928f28ac70c4b13cf4b6fe73e7b33e2e86d2f (diff) |
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 <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/uibase/dialog')
-rw-r--r-- | sw/source/uibase/dialog/regionsw.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
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) |