diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2015-07-12 00:57:16 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-07-13 06:57:29 +0000 |
commit | d11b244bf9b9115f5384d6ff43bdffc7f1289d71 (patch) | |
tree | 0dffceb6d8f40bf568408ddd019a7627e77b1006 /fpicker/source/win32 | |
parent | 7f0161d88e3a496361e2209d31cc7e9ef42a677e (diff) |
getFiles: truncate to 1 file only
See http://nabble.documentfoundation.org/Multiselection-needs-work-td4153207.html
for details
Change-Id: I7f855a067349381e2567bd15a8daa56aad412774
Reviewed-on: https://gerrit.libreoffice.org/16959
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'fpicker/source/win32')
-rw-r--r-- | fpicker/source/win32/filepicker/VistaFilePicker.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fpicker/source/win32/filepicker/VistaFilePicker.cxx b/fpicker/source/win32/filepicker/VistaFilePicker.cxx index 4774857127bb..1270079af7c3 100644 --- a/fpicker/source/win32/filepicker/VistaFilePicker.cxx +++ b/fpicker/source/win32/filepicker/VistaFilePicker.cxx @@ -261,7 +261,11 @@ css::uno::Sequence< OUString > SAL_CALL VistaFilePicker::getFiles() m_aAsyncExecute.triggerRequestThreadAware(rRequest, AsyncRequests::BLOCKED); - const css::uno::Sequence< OUString > lFiles = rRequest->getArgumentOrDefault(PROP_SELECTED_FILES, css::uno::Sequence< OUString >()); + css::uno::Sequence< OUString > lFiles = rRequest->getArgumentOrDefault(PROP_SELECTED_FILES, css::uno::Sequence< OUString >()); + // multiselection doesn't really work + // so just retrieve the first url + if (lFiles.getLength() > 1) + lFiles.realloc(1); m_lLastFiles = lFiles; return lFiles; } |