From a5630037c3352e11132fbf492f81accc09e554eb Mon Sep 17 00:00:00 2001 From: kateleet Date: Thu, 23 Dec 2021 11:26:03 +0800 Subject: [PATCH] fix: open current dir --- application.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/application.cpp b/application.cpp index ee1126e..bc57f94 100644 --- a/application.cpp +++ b/application.cpp @@ -94,9 +94,13 @@ void Application::openWindow(const QString &path) QStringList Application::formatUriList(const QStringList &list) { - QStringList val = list; + QStringList val; - if (list.isEmpty()) { + for (const QString &path : list) { + val.append(path == "." ? QDir::currentPath() : path); + } + + if (val.isEmpty()) { val.append(QDir::currentPath()); }