From a68c6ed1e199e703fa7d5945cf16d4f3b8267ecb Mon Sep 17 00:00:00 2001 From: rumtid Date: Thu, 18 May 2023 16:20:35 +0800 Subject: [PATCH] Fix the path_in_repo argument for library roots (#1465) --- src/finder-sync/finder-sync-host.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/finder-sync/finder-sync-host.cpp b/src/finder-sync/finder-sync-host.cpp index 7361eb134..f265df8e7 100644 --- a/src/finder-sync/finder-sync-host.cpp +++ b/src/finder-sync/finder-sync-host.cpp @@ -334,13 +334,7 @@ bool FinderSyncHost::lookUpFileInformation(const QString &path, QString *repo_id *path_in_repo = QDir(worktree).relativeFilePath(path); if (!path_in_repo->startsWith("/")) *path_in_repo = "/" + *path_in_repo; - if (path.endsWith("/")) - *path_in_repo += "/"; - - // we have a empty path_in_repo representing the root of the directory, - // and we are okay! - if (path_in_repo->startsWith(".")) - return false; + *path_in_repo = QDir::cleanPath(*path_in_repo); *account = seafApplet->accountManager()->getAccountByRepo(*repo_id); if (!account->isValid())