[Libreoffice-commits] core.git: sw/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Tue Apr 30 10:32:15 UTC 2019
sw/source/uibase/dialog/regionsw.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 6e07375f92f79959cc9288bb2a3b237b480e952c
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Apr 30 09:13:26 2019 +0100
Commit: Caolán McNamara <caolanm at 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 <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at 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)
More information about the Libreoffice-commits
mailing list