fpicker/source/office/iodlg.cxx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-)
New commits: commit be5e2a99039002fabe6bf8032b45350fa388b6fb Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Mon Jan 13 21:33:09 2025 +0500 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Mon Jan 13 21:12:22 2025 +0100 The protocol was already checked above Change-Id: If2ca73f043308736a4bfc3325d51aa271b07abe1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180200 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx index cd9a53a0cc88..5400d4323099 100644 --- a/fpicker/source/office/iodlg.cxx +++ b/fpicker/source/office/iodlg.cxx @@ -895,13 +895,8 @@ void SvtFileDialog::OpenHdl_Impl(void const * pVoid) OUString sError(FpsResId(RID_FILEOPEN_NOTEXISTENTFILE)); OUString sInvalidFile( aFileObj.GetMainURL( INetURLObject::DecodeMechanism::ToIUri ) ); - if ( INetProtocol::File == aFileObj.GetProtocol() ) - { // if it's a file URL, transform the URL into system notation - OUString sURL( sInvalidFile ); - OUString sSystem; - osl_getSystemPathFromFileURL( sURL.pData, &sSystem.pData ); - sInvalidFile = sSystem; - } + // transform the URL into system notation + osl_getSystemPathFromFileURL(sInvalidFile.pData, &sInvalidFile.pData); sError = sError.replaceFirst( "$name$", sInvalidFile ); std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(m_xDialog.get(),