diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-06-21 12:30:34 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-06-21 15:29:59 +0200 |
commit | a8f97e5fca148804056295db2e3910aaa5c68ce8 (patch) | |
tree | 594c079c6552ccf49e833158f07be2892e2d8622 /xmlsecurity | |
parent | efacb4bc357761f5d849a4905eff981aa14eb366 (diff) |
bundle the FolderPicker instantiations behind a single call
in prep to add parent support
Change-Id: I2aa4b9343f895ae866f600dd3260b7fdc4e1efec
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117579
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/source/dialogs/macrosecurity.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmlsecurity/source/dialogs/macrosecurity.cxx b/xmlsecurity/source/dialogs/macrosecurity.cxx index 7cae32bf3905..2cb08df9cd9f 100644 --- a/xmlsecurity/source/dialogs/macrosecurity.cxx +++ b/xmlsecurity/source/dialogs/macrosecurity.cxx @@ -34,6 +34,7 @@ #include <com/sun/star/uno/Exception.hpp> #include <com/sun/star/ui/dialogs/FolderPicker.hpp> #include <com/sun/star/ui/dialogs/ExecutableDialogResults.hpp> +#include <sfx2/filedlghelper.hxx> #include <tools/diagnose_ex.h> #include <tools/urlobj.hxx> #include <unotools/datetime.hxx> @@ -264,7 +265,7 @@ IMPL_LINK_NOARG(MacroSecurityTrustedSourcesTP, AddLocPBHdl, weld::Button&, void) try { uno::Reference < uno::XComponentContext > xContext( ::comphelper::getProcessComponentContext() ); - uno::Reference < ui::dialogs::XFolderPicker2 > xFolderPicker = ui::dialogs::FolderPicker::create(xContext); + uno::Reference < ui::dialogs::XFolderPicker2 > xFolderPicker = sfx2::createFolderPicker(xContext, m_pDlg->getDialog()); short nRet = xFolderPicker->execute(); |