From: Kevin Ottens Date: Tue, 23 Jun 2020 17:24:56 +0000 (+0200) Subject: Display folder names demangled in the settings X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~222^2^2~130^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=01d44dd3a17e267299831541a483ed3520fc81d1;p=nextcloud-desktop.git Display folder names demangled in the settings Signed-off-by: Kevin Ottens --- diff --git a/src/gui/folderstatusmodel.cpp b/src/gui/folderstatusmodel.cpp index c337d8351..88cf04db9 100644 --- a/src/gui/folderstatusmodel.cpp +++ b/src/gui/folderstatusmodel.cpp @@ -690,7 +690,14 @@ void FolderStatusModel::slotUpdateDirectories(const QStringList &list) newInfo._pathIdx << newSubs.size(); newInfo._isExternal = permissionMap.value(removeTrailingSlash(path)).toString().contains("M"); newInfo._path = relativePath; - newInfo._name = removeTrailingSlash(relativePath).split('/').last(); + + SyncJournalFileRecord rec; + parentInfo->_folder->journalDb()->getFileRecordByE2eMangledName(removeTrailingSlash(relativePath), &rec); + if (rec.isValid()) { + newInfo._name = removeTrailingSlash(rec._path).split('/').last(); + } else { + newInfo._name = removeTrailingSlash(relativePath).split('/').last(); + } const auto& folderInfo = job->_folderInfos.value(path); newInfo._size = folderInfo.size;