fix: remote cdup failed bug.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user