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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user