summaryrefslogtreecommitdiff
path: root/sw/source/ui/fldui/javaedit.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/fldui/javaedit.cxx')
-rw-r--r--sw/source/ui/fldui/javaedit.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/sw/source/ui/fldui/javaedit.cxx b/sw/source/ui/fldui/javaedit.cxx
index df81c3c1cb29..d448a193f533 100644
--- a/sw/source/ui/fldui/javaedit.cxx
+++ b/sw/source/ui/fldui/javaedit.cxx
@@ -45,8 +45,7 @@ SwJavaEditDialog::SwJavaEditDialog(vcl::Window* pParent, SwWrtShell* pWrtSh) :
bIsUrl(false),
pSh(pWrtSh),
- pFileDlg(nullptr),
- pOldDefDlgParent(nullptr)
+ pFileDlg(nullptr)
{
get(m_pTypeED, "scripttype");
get(m_pUrlRB, "url");
@@ -96,7 +95,6 @@ void SwJavaEditDialog::dispose()
pSh->EnterStdMode();
delete pMgr;
delete pFileDlg;
- Application::SetDefDialogParent( pOldDefDlgParent );
m_pTypeED.clear();
m_pUrlRB.clear();
m_pEditRB.clear();
@@ -106,7 +104,6 @@ void SwJavaEditDialog::dispose()
m_pOKBtn.clear();
m_pPrevBtn.clear();
m_pNextBtn.clear();
- pOldDefDlgParent.clear();
SvxStandardDialog::dispose();
}
@@ -251,13 +248,10 @@ IMPL_LINK_NOARG_TYPED(SwJavaEditDialog, RadioButtonHdl, Button*, void)
}
}
-IMPL_LINK_TYPED( SwJavaEditDialog, InsertFileHdl, Button *, pBtn, void )
+IMPL_LINK_NOARG_TYPED( SwJavaEditDialog, InsertFileHdl, Button *, void )
{
if ( !pFileDlg )
{
- pOldDefDlgParent = Application::GetDefDialogParent();
- Application::SetDefDialogParent( pBtn );
-
pFileDlg = new ::sfx2::FileDialogHelper(
ui::dialogs::TemplateDescription::FILEOPEN_SIMPLE,
FileDialogFlags::Insert, OUString("swriter") );