From 28fca2e3132e3b66b337c53df58233615c48f0fa Mon Sep 17 00:00:00 2001 From: Akshay Deep Date: Mon, 6 Jun 2016 15:51:21 +0530 Subject: Resolves: Template selection dialog has wrong parent Change-Id: I500e78c0256cf6b7de03a537190e842f5e878e6e Reviewed-on: https://gerrit.libreoffice.org/25959 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt --- sd/source/ui/app/sdmod1.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sd') diff --git a/sd/source/ui/app/sdmod1.cxx b/sd/source/ui/app/sdmod1.cxx index 9fe8646f35e5..86285a436289 100644 --- a/sd/source/ui/app/sdmod1.cxx +++ b/sd/source/ui/app/sdmod1.cxx @@ -556,7 +556,7 @@ SfxFrame* SdModule::ExecuteNewDocument( SfxRequest& rReq ) pFrame = CreateEmptyDocument( xTargetFrame ); //Launch TemplateSelectionDialog - ScopedVclPtrInstance< SfxTemplateSelectionDlg > aTemplDlg; + ScopedVclPtrInstance< SfxTemplateSelectionDlg > aTemplDlg( SfxGetpApp()->GetTopWindow()); aTemplDlg->Execute(); //check to disable the dialog -- cgit