tdf#160839 - Don't URL encode filenames from remote sources
Don't URL encode filenames from remote sources in the recent documents files list. Change-Id: Ic9e6cce29ba9638cff43b9f4f540a59be1164276 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/206154 Tested-by: Jenkins Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
This commit is contained in:
@@ -273,7 +273,8 @@ void RecentFilesMenuController::fillPopupMenu(std::unique_lock<std::mutex>& /*rG
|
||||
else
|
||||
{
|
||||
// In all other URLs show the protocol name before the file name
|
||||
aMenuTitle = INetURLObject::GetSchemeName(aURL.GetProtocol()) + ": " + aURL.getName();
|
||||
aMenuTitle = INetURLObject::GetSchemeName(aURL.GetProtocol()) + ": "
|
||||
+ aURL.GetLastName(INetURLObject::DecodeMechanism::WithCharset);
|
||||
}
|
||||
|
||||
aMenuShortCut.append( aMenuTitle );
|
||||
|
||||
Reference in New Issue
Block a user