diff options
Diffstat (limited to 'sfx2/source/doc/docinsert.cxx')
-rw-r--r-- | sfx2/source/doc/docinsert.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/doc/docinsert.cxx b/sfx2/source/doc/docinsert.cxx index de150152f6a2..2f53b7519163 100644 --- a/sfx2/source/doc/docinsert.cxx +++ b/sfx2/source/doc/docinsert.cxx @@ -216,12 +216,12 @@ IMPL_LINK_NOARG(DocumentInserter, DialogClosedHdl, sfx2::FileDialogHelper*, void if ( ( aValue >>= bPassWord ) && bPassWord ) { // ask for the password - ScopedVclPtrInstance< SfxPasswordDialog > aPasswordDlg(nullptr); - aPasswordDlg->ShowExtras( SfxShowExtras::CONFIRM ); - short nRet = aPasswordDlg->Execute(); + SfxPasswordDialog aPasswordDlg(m_xParent ? m_xParent->GetFrameWeld() : nullptr); + aPasswordDlg.ShowExtras( SfxShowExtras::CONFIRM ); + short nRet = aPasswordDlg.run(); if ( RET_OK == nRet ) { - m_pItemSet->Put( SfxStringItem( SID_PASSWORD, aPasswordDlg->GetPassword() ) ); + m_pItemSet->Put( SfxStringItem( SID_PASSWORD, aPasswordDlg.GetPassword() ) ); } else { |