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

Caolán McNamara caolanm at redhat.com
Wed Oct 18 19:50:17 UTC 2017


 desktop/source/deployment/gui/dp_gui_dialog2.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit dbcb06bfcb123d265029d380c60634227a505557
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Oct 18 15:40:48 2017 +0100

    set parent of extension file dialog
    
    Change-Id: I9791fceb975ca9d0a0ca0ae61c0890826d06c564
    Reviewed-on: https://gerrit.libreoffice.org/43510
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/desktop/source/deployment/gui/dp_gui_dialog2.cxx b/desktop/source/deployment/gui/dp_gui_dialog2.cxx
index 9612957b8908..b9969d90798f 100644
--- a/desktop/source/deployment/gui/dp_gui_dialog2.cxx
+++ b/desktop/source/deployment/gui/dp_gui_dialog2.cxx
@@ -48,6 +48,7 @@
 #include <svtools/extensionlistbox.hxx>
 #include <svtools/restartdialog.hxx>
 
+#include <sfx2/filedlghelper.hxx>
 #include <sfx2/sfxdlg.hxx>
 
 #include <comphelper/anytostring.hxx>
@@ -678,9 +679,8 @@ bool ExtMgrDialog::acceptLicense( const uno::Reference< deployment::XPackage > &
 
 uno::Sequence< OUString > ExtMgrDialog::raiseAddPicker()
 {
-    const uno::Reference< uno::XComponentContext > xContext( m_pManager->getContext() );
-    const uno::Reference< ui::dialogs::XFilePicker3 > xFilePicker =
-        ui::dialogs::FilePicker::createWithMode(xContext, ui::dialogs::TemplateDescription::FILEOPEN_SIMPLE);
+    sfx2::FileDialogHelper aDlgHelper(ui::dialogs::TemplateDescription::FILEOPEN_SIMPLE, FileDialogFlags::NONE, this);
+    const uno::Reference<ui::dialogs::XFilePicker3> xFilePicker = aDlgHelper.GetFilePicker();
     xFilePicker->setTitle( m_sAddPackages );
 
     if ( !m_sLastFolderURL.isEmpty() )


More information about the Libreoffice-commits mailing list