summaryrefslogtreecommitdiff
path: root/sw/source/uibase/dialog
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-03-14 16:49:04 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-03-15 09:59:33 +0100
commitaeec817fe1205eba88089569ef26bff819d1fdac (patch)
treec5685075bd803e1b2ee7fb2ea2be4567d0618262 /sw/source/uibase/dialog
parenta98bb35d4e11471cee6b3dbf66b2c3d25df39bfa (diff)
weld SwInsertSectionTabDialog
Change-Id: Ic2782ed51cfb7dea25a455843eb749abd70e53a4 Reviewed-on: https://gerrit.libreoffice.org/69283 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.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/sw/source/uibase/dialog/regionsw.cxx b/sw/source/uibase/dialog/regionsw.cxx
index 28f0ede5b7f5..30b97749e641 100644
--- a/sw/source/uibase/dialog/regionsw.cxx
+++ b/sw/source/uibase/dialog/regionsw.cxx
@@ -80,8 +80,10 @@ void SwBaseShell::InsertRegionDialog(SfxRequest& rReq)
aSet.Put(SvxSizeItem(SID_ATTR_PAGE_SIZE, Size(nWidth, nWidth)));
SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
VclPtr<AbstractInsertSectionTabDialog> aTabDlg(pFact->CreateInsertSectionTabDialog(
- &GetView().GetViewFrame()->GetWindow(), aSet , rSh));
- aTabDlg->StartExecuteAsync(nullptr);
+ GetView().GetViewFrame()->GetWindow().GetFrameWeld(), aSet , rSh));
+ aTabDlg->StartExecuteAsync([aTabDlg](sal_Int32 /*nResult*/){
+ aTabDlg->disposeOnce();
+ });
rReq.Ignore();
}
else
@@ -187,7 +189,7 @@ void SwWrtShell::StartInsertRegionDialog(const SwSectionData& rSectionData)
aSet.Put(SvxSizeItem(SID_ATTR_PAGE_SIZE, Size(nWidth, nWidth)));
SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
VclPtr<AbstractInsertSectionTabDialog> aTabDlg(pFact->CreateInsertSectionTabDialog(
- &GetView().GetViewFrame()->GetWindow(),aSet , *this));
+ GetView().GetViewFrame()->GetWindow().GetFrameWeld(), aSet, *this));
aTabDlg->SetSectionData(rSectionData);
aTabDlg->StartExecuteAsync(nullptr);
}