Skip to content

Commit 28c3062

Browse files
nilsdingbackportbot[bot]
authored andcommitted
fix(filedetails): use correct path for fetching file tags
Discovered in nextcloud#9238, caused file tags to never appear in the file details window ... Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
1 parent 096cc6a commit 28c3062

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/gui/filedetails/filedetails.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ FileTagModel *FileDetails::fileTagModel() const
177177
void FileDetails::updateFileTagModel()
178178
{
179179
const auto localPath = _fileRecord.path();
180-
const auto relPath = localPath.mid(_folder->cleanPath().length() + 1);
181180
QString serverPath = _folder->remotePathTrailingSlash() + _fileRecord.path();
182181

183182
if (const auto vfsMode = _folder->vfs().mode(); _fileRecord.isVirtualFile() && vfsMode == Vfs::WithSuffix) {
@@ -186,7 +185,7 @@ void FileDetails::updateFileTagModel()
186185
}
187186
}
188187

189-
_fileTagModel = std::make_unique<FileTagModel>(relPath, _folder->accountState()->account());
188+
_fileTagModel = std::make_unique<FileTagModel>(serverPath, _folder->accountState()->account());
190189
Q_EMIT fileTagModelChanged();
191190
}
192191

0 commit comments

Comments
 (0)