[Libreoffice-commits] core.git: cui/source

Caolán McNamara caolanm at redhat.com
Sat Sep 2 10:35:32 UTC 2017


 cui/source/dialogs/insdlg.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 6716100f4d8529cb265481e2ab54a90b4a5e287c
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Sep 1 21:17:06 2017 +0100

    set parent for insert ole object file dialog
    
    Change-Id: Iffa30802f65c950290d74a79c66d679b0ff9d5ea
    Reviewed-on: https://gerrit.libreoffice.org/41814
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

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


More information about the Libreoffice-commits mailing list