diff options
Diffstat (limited to 'sw/source/uibase/dialog/regionsw.cxx')
-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) |