summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-03-21 20:43:17 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-03-22 09:44:47 +0100
commit5262a9e88037decc26da84e7fa62f2955d4cdb85 (patch)
tree0e5deb22353b1bfd7e5ddb8666bd2a30c7231a24 /sd/source
parent2cf71e61f087f2155b7542da709189bcf4d0795a (diff)
change SfxApplication::GetTopWindow to weld::Window
Change-Id: I19906f2a9d820c99375e2e5677a484d4e2e25fdb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112857 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/app/sdmod1.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sd/source/ui/app/sdmod1.cxx b/sd/source/ui/app/sdmod1.cxx
index 35bf5ebfb5ea..01d36ee93155 100644
--- a/sd/source/ui/app/sdmod1.cxx
+++ b/sd/source/ui/app/sdmod1.cxx
@@ -477,11 +477,10 @@ SfxFrame* SdModule::ExecuteNewDocument( SfxRequest const & rReq )
}
}
- if(bStartWithTemplate)
+ if (bStartWithTemplate)
{
//Launch TemplateSelectionDialog
- vcl::Window* pTopLevel = SfxGetpApp()->GetTopWindow();
- SfxTemplateSelectionDlg aTemplDlg(pTopLevel ? pTopLevel->GetFrameWeld() : nullptr);
+ SfxTemplateSelectionDlg aTemplDlg(SfxGetpApp()->GetTopWindow());
aTemplDlg.run();
//check to disable the dialog