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 <mike.kaganski@collabora.com>
This commit is contained in:
Mike Kaganski
2026-01-24 18:00:13 +01:00
parent dbfc645ad8
commit 0a0b3a14dd
+1 -2
View File
@@ -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);
}