Kaydet (Commit) 32ca7757 authored tarafından Cédric Bosdonnat's avatar Cédric Bosdonnat

Template manager: dialog has no parent to show 'X' button

Change-Id: I1d7806a125fb34000f588f0936b48dd7ce411356
üst d4dc0293
......@@ -37,7 +37,7 @@ class SfxTemplateManagerDlg : public ModelessDialog
{
public:
SfxTemplateManagerDlg (Window *parent = NULL);
SfxTemplateManagerDlg (Window *parent = DIALOG_NO_PARENT);
~SfxTemplateManagerDlg ();
......
......@@ -566,7 +566,7 @@ void SfxApplication::NewDocExec_Impl( SfxRequest& rReq )
sal_Bool bNewWin = sal_False;
Window* pTopWin = GetTopWindow();
SfxTemplateManagerDlg aTemplDlg(NULL);
SfxTemplateManagerDlg aTemplDlg;
int nRet = aTemplDlg.Execute();
if ( nRet == RET_OK )
{
......
......@@ -863,7 +863,7 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq)
case SID_DOCTEMPLATE:
{
// save as document templates
SfxTemplateManagerDlg aDlg(NULL);
SfxTemplateManagerDlg aDlg;
aDlg.setDocumentModel(GetModel());
aDlg.setSaveMode(true);
aDlg.Execute();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment