fix: remote cdup failed bug.

This commit is contained in:
2025-06-15 23:49:07 +08:00
parent b199b0e5e0
commit 81008e0d2d

View File

@@ -172,10 +172,7 @@ void FileManager::evtUp()
{ {
QString path(curRoot_); QString path(curRoot_);
QDir dir(path); QDir dir(path);
if (!dir.cdUp()) { path = QDir::cleanPath(dir.absolutePath() + "/..");
return;
}
path = dir.path();
if (path.isEmpty()) { if (path.isEmpty()) {
return; return;
} }