fix: open current dir
This commit is contained in:
parent
3dd4433645
commit
a5630037c3
1 changed files with 6 additions and 2 deletions
|
@ -94,9 +94,13 @@ void Application::openWindow(const QString &path)
|
||||||
|
|
||||||
QStringList Application::formatUriList(const QStringList &list)
|
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());
|
val.append(QDir::currentPath());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue