diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-12-28 17:05:40 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-12-28 17:11:31 +0000 |
commit | 58ea27124af27bfac21a796b0d13d72354bd0dd3 (patch) | |
tree | 283b986474957adf207481a16139e03484c8cc5a /include/vcl/svapp.hxx | |
parent | fe868bf7cfba864c6f11f068df87c5fdaae7458c (diff) |
make FilePicker::createWithMode not crash
i.e. calc->data->XML Source->"browse to set source" calls
com_sun_star_comp_svt_FilePicker_get_implementation with its
single argument in arguments as opposed to the empty argument
expected there.
So allow the single-argument case, and pass the argument through and apply it
automatically via XInitialization::initialize in Application::createFilePicker.
I'm far from sure that this is the right solution, but it has the advantage of
working vs crashing.
Change-Id: I07c1baae7f47781920eac56763e8fd003a7b99e1
Diffstat (limited to 'include/vcl/svapp.hxx')
-rw-r--r-- | include/vcl/svapp.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/vcl/svapp.hxx b/include/vcl/svapp.hxx index 1620efa9f806..57814e0d8cb7 100644 --- a/include/vcl/svapp.hxx +++ b/include/vcl/svapp.hxx @@ -389,9 +389,9 @@ public: /** Create a platform specific file picker, if one is available, otherwise return an empty reference */ - static com::sun::star::uno::Reference< com::sun::star::ui::dialogs::XFilePicker2 > - createFilePicker( const com::sun::star::uno::Reference< - com::sun::star::uno::XComponentContext >& rServiceManager ); + static css::uno::Reference<css::ui::dialogs::XFilePicker2> + createFilePicker(const css::uno::Sequence<css::uno::Any>& rArguments, + const css::uno::Reference<css::uno::XComponentContext>& rServiceManager); /** Create a platform specific folder picker, if one is available, otherwise return an empty reference |