summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-09-01 21:17:06 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-09-02 12:35:11 +0200
commit6716100f4d8529cb265481e2ab54a90b4a5e287c (patch)
tree329eee5e420b014d38b8a84c13040f743fdf84d1 /cui
parent9938799d65cfb864033e5e8a08efa750361f59d4 (diff)
set parent for insert ole object file dialog
Change-Id: Iffa30802f65c950290d74a79c66d679b0ff9d5ea Reviewed-on: https://gerrit.libreoffice.org/41814 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/insdlg.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/dialogs/insdlg.cxx b/cui/source/dialogs/insdlg.cxx
index be4eef5cfa18..60d44685ca6b 100644
--- a/cui/source/dialogs/insdlg.cxx
+++ b/cui/source/dialogs/insdlg.cxx
@@ -48,6 +48,7 @@
#include <vcl/lstbox.hxx>
#include <vcl/svapp.hxx>
#include <comphelper/classids.hxx>
+#include <sfx2/filedlghelper.hxx>
#include <sfx2/frmdescr.hxx>
#include <sfx2/viewsh.hxx>
#include <sfx2/filedlghelper.hxx>
@@ -95,9 +96,8 @@ IMPL_LINK_NOARG(SvInsertOleDlg, DoubleClickHdl, ListBox&, void)
IMPL_LINK_NOARG(SvInsertOleDlg, BrowseHdl, Button*, void)
{
- Reference< XComponentContext > xContext( ::comphelper::getProcessComponentContext() );
-
- Reference< XFilePicker3 > xFilePicker = FilePicker::createWithMode(xContext, TemplateDescription::FILEOPEN_SIMPLE);
+ sfx2::FileDialogHelper aHelper(ui::dialogs::TemplateDescription::FILEOPEN_SIMPLE, FileDialogFlags::NONE, this);
+ Reference< XFilePicker3 > xFilePicker = aHelper.GetFilePicker();
// add filter
try