fpicker/source/win32/VistaFilePickerImpl.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit 0a0b3a14ddbab4b558da680ded9f5a896ee3c049 Author: Mike Kaganski <[email protected]> AuthorDate: Sat Jan 24 16:16:08 2026 +0100 Commit: Mike Kaganski <[email protected]> CommitDate: Sat Jan 24 18:00:13 2026 +0100 Use TOpenDialogImpl for folder picker, too Its only difference from its base is getResult, which also tries to use IFileOpenDialog::GetSelectedItems/GetResults, which is OK for folder picker. Change-Id: I6acbcb64a2de4025dcac8022b26355d6444f5082 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198044 Tested-by: Jenkins Reviewed-by: Mike Kaganski <[email protected]> diff --git a/fpicker/source/win32/VistaFilePickerImpl.cxx b/fpicker/source/win32/VistaFilePickerImpl.cxx index 9b20a489f289..5725070717b8 100644 --- a/fpicker/source/win32/VistaFilePickerImpl.cxx +++ b/fpicker/source/win32/VistaFilePickerImpl.cxx @@ -160,7 +160,6 @@ public: } using TSaveDialogImpl = TDialogImpl<TFileSaveDialog, CLSID_FileSaveDialog>; -using TFolderPickerDialogImpl = TDialogImpl<TFileOpenDialog, CLSID_FileOpenDialog>; static OUString lcl_getURLFromShellItem (IShellItem* pItem) @@ -507,7 +506,7 @@ void VistaFilePickerImpl::impl_sta_CreateSaveDialog(Request& rRequest) void VistaFilePickerImpl::impl_sta_CreateFolderPicker(Request& rRequest) { - impl_sta_CreateDialog<TFolderPickerDialogImpl>(); + impl_sta_CreateDialog<TOpenDialogImpl>(); impl_sta_InitDialog(rRequest, FOS_PICKFOLDERS); }
