File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -177,7 +177,6 @@ FileTagModel *FileDetails::fileTagModel() const
177177void 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
You can’t perform that action at this time.
0 commit comments