fix: open current dir

This commit is contained in:
kateleet 2021-12-23 11:26:03 +08:00
parent 3dd4433645
commit a5630037c3

View file

@ -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());
}