[Libreoffice-commits] core.git: desktop/source
Julien Nabet
serval2412 at yahoo.fr
Wed Sep 30 05:13:42 PDT 2015
desktop/source/deployment/gui/dp_gui_dialog2.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 5e2644400521b90e9e4ff9253a9abfc9bf642cb4
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sat Sep 19 01:16:37 2015 +0200
Prefer getSelectedFiles to getFiles
Anyway, add extension dialog allows to select only 1 file.
So getFiles and getSelectedFiles both return a 1 cell array which contain the full path of the file.
See http://nabble.documentfoundation.org/Multiselection-needs-work-tt4153207.html
Change-Id: I475ea519648d075b482a07d23b15af2ddb8f4637
Reviewed-on: https://gerrit.libreoffice.org/18711
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
diff --git a/desktop/source/deployment/gui/dp_gui_dialog2.cxx b/desktop/source/deployment/gui/dp_gui_dialog2.cxx
index a9c0811..49916e1 100644
--- a/desktop/source/deployment/gui/dp_gui_dialog2.cxx
+++ b/desktop/source/deployment/gui/dp_gui_dialog2.cxx
@@ -936,7 +936,7 @@ uno::Sequence< OUString > ExtMgrDialog::raiseAddPicker()
return uno::Sequence<OUString>(); // cancelled
m_sLastFolderURL = xFilePicker->getDisplayDirectory();
- uno::Sequence< OUString > files( xFilePicker->getFiles() );
+ uno::Sequence< OUString > files( xFilePicker->getSelectedFiles() );
OSL_ASSERT( files.getLength() > 0 );
return files;
}
More information about the Libreoffice-commits
mailing list