diff options
author | Tor Lillqvist <tlillqvist@suse.com> | 2013-01-22 13:01:44 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2013-02-05 13:36:46 +0100 |
commit | 56d41fef8f96888d5aaf39a9c4d0c7eca5b63d44 (patch) | |
tree | 26bc1f771a72be8ec398c0897a5460173eb58e06 /fpicker | |
parent | 2a31dd4025eff8d09ab207f31bacc0a5b8c36bd9 (diff) |
"Fix" bnc#777788
Always call IFileDialog::SetFolder() in
VistaFilePickerImpl::impl_sta_SetFileName() as that seems to be what
the customer wants.
And overall, it is a more reasonable behavior.
Change-Id: I53807847d1d8f954caefe7d9e4b4e4807e6dcbfb
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx b/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx index 655568508b76..75a3f797f4de 100644 --- a/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx +++ b/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx @@ -668,7 +668,6 @@ void VistaFilePickerImpl::impl_sta_SetFileName(const RequestRef& rRequest) void VistaFilePickerImpl::impl_sta_SetDirectory(const RequestRef& rRequest) { ::rtl::OUString sDirectory = rRequest->getArgumentOrDefault(PROP_DIRECTORY, ::rtl::OUString()); - bool bForce = rRequest->getArgumentOrDefault(PROP_FORCE, false); if( !m_bInExecute) { @@ -695,13 +694,7 @@ void VistaFilePickerImpl::impl_sta_SetDirectory(const RequestRef& rRequest) if ( FAILED(hResult) ) return; - if ( m_bInExecute || bForce ) - iDialog->SetFolder(pFolder); - else - { - // Use set default folder as Microsoft recommends in the IFileDialog documentation. - iDialog->SetDefaultFolder(pFolder); - } + iDialog->SetFolder(pFolder); } void VistaFilePickerImpl::impl_sta_GetDirectory(const RequestRef& rRequest) |