diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-05-12 09:38:28 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-05-12 10:09:26 +0100 |
commit | 71c4a2b761885c2d5515e89fd5aedf7d1e8a249b (patch) | |
tree | c8d9cbd035e2dcf601c18ef28cbb12f4f043295f /cui | |
parent | 533fd775d51472e6cff93487a27136f67f06d77f (diff) |
mpDefDialogParent is not used since 2002
i.e.
commit c0ae87cb5f2989bc4b8dff4907994d513ee87e39
Author: Stephan Schäfer <ssa@openoffice.org>
Date: Tue Oct 22 08:39:05 2002 +0000
#103442# choose DefDialogParent on-the-fly
and so calling SetDefDialogParent doesn't achieve anything
Change-Id: I2ec72da47b2dac03fdddbdb9eba5ae4bf205eb22
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/insdlg.cxx | 5 | ||||
-rw-r--r-- | cui/source/dialogs/scriptdlg.cxx | 6 |
2 files changed, 1 insertions, 10 deletions
diff --git a/cui/source/dialogs/insdlg.cxx b/cui/source/dialogs/insdlg.cxx index a5008d252c80..c9207f9ad8d8 100644 --- a/cui/source/dialogs/insdlg.cxx +++ b/cui/source/dialogs/insdlg.cxx @@ -623,9 +623,6 @@ IMPL_LINK_TYPED( SfxInsertFloatingFrameDialog, CheckHdl, Button*, pButton, void IMPL_LINK_NOARG_TYPED( SfxInsertFloatingFrameDialog, OpenHdl, Button*, void) { - vcl::Window* pOldParent = Application::GetDefDialogParent(); - Application::SetDefDialogParent( this ); - // create the file dialog sfx2::FileDialogHelper aFileDlg( ui::dialogs::TemplateDescription::FILEOPEN_SIMPLE, FileDialogFlags::NONE, OUString() ); @@ -637,8 +634,6 @@ IMPL_LINK_NOARG_TYPED( SfxInsertFloatingFrameDialog, OpenHdl, Button*, void) if ( aFileDlg.Execute() == ERRCODE_NONE ) m_pEDURL->SetText( INetURLObject( aFileDlg.GetPath() ).GetMainURL( INetURLObject::DECODE_WITH_CHARSET ) ); - - Application::SetDefDialogParent( pOldParent ); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cui/source/dialogs/scriptdlg.cxx b/cui/source/dialogs/scriptdlg.cxx index 14b57ca7ff20..7ae62e46f231 100644 --- a/cui/source/dialogs/scriptdlg.cxx +++ b/cui/source/dialogs/scriptdlg.cxx @@ -533,11 +533,7 @@ short SvxScriptOrgDialog::Execute() pDoc = SfxObjectShell::GetNext(*pDoc); } - vcl::Window* pPrevDlgParent = Application::GetDefDialogParent(); - Application::SetDefDialogParent( this ); - short nRet = ModalDialog::Execute(); - Application::SetDefDialogParent( pPrevDlgParent ); - return nRet; + return ModalDialog::Execute(); } void SvxScriptOrgDialog::CheckButtons( Reference< browse::XBrowseNode >& node ) |