From 652ec5d7ab605e6f91f4d8b98e76c3a1fb116af5 Mon Sep 17 00:00:00 2001 From: Jyrki Gadinger Date: Wed, 20 May 2026 14:50:36 +0200 Subject: [PATCH] fix(filedetails): use correct path for fetching file tags Discovered in #9238, caused file tags to never appear in the file details window ... Signed-off-by: Jyrki Gadinger --- src/gui/filedetails/filedetails.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/filedetails/filedetails.cpp b/src/gui/filedetails/filedetails.cpp index eff3aff78b31b..d087796ccf870 100644 --- a/src/gui/filedetails/filedetails.cpp +++ b/src/gui/filedetails/filedetails.cpp @@ -177,7 +177,6 @@ FileTagModel *FileDetails::fileTagModel() const void FileDetails::updateFileTagModel() { const auto localPath = _fileRecord.path(); - const auto relPath = localPath.mid(_folder->cleanPath().length() + 1); QString serverPath = _folder->remotePathTrailingSlash() + _fileRecord.path(); if (const auto vfsMode = _folder->vfs().mode(); _fileRecord.isVirtualFile() && vfsMode == Vfs::WithSuffix) { @@ -186,7 +185,7 @@ void FileDetails::updateFileTagModel() } } - _fileTagModel = std::make_unique(relPath, _folder->accountState()->account()); + _fileTagModel = std::make_unique(serverPath, _folder->accountState()->account()); Q_EMIT fileTagModelChanged(); }