From 81008e0d2d53203ccd7cf1825adb9a5100ad034c Mon Sep 17 00:00:00 2001 From: taynpg Date: Sun, 15 Jun 2025 23:49:07 +0800 Subject: [PATCH] fix: remote cdup failed bug. --- Gui/Control/FileControl.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Gui/Control/FileControl.cpp b/Gui/Control/FileControl.cpp index 7ae64dc..e032c84 100644 --- a/Gui/Control/FileControl.cpp +++ b/Gui/Control/FileControl.cpp @@ -172,10 +172,7 @@ void FileManager::evtUp() { QString path(curRoot_); QDir dir(path); - if (!dir.cdUp()) { - return; - } - path = dir.path(); + path = QDir::cleanPath(dir.absolutePath() + "/.."); if (path.isEmpty()) { return; }