Fix some bugs in scripting

This commit is contained in:
2024-06-10 18:55:13 +02:00
parent 37dd97e361
commit 3c8f49e932
2 changed files with 19 additions and 8 deletions
+4 -1
View File
@@ -36,7 +36,10 @@ QList<QPair<QString, QString>> scanDirectories(const QStringList &paths)
}
else if(info.isFile())
{
files.append({path, root});
if(path == root)
files.append({path, info.absolutePath()});
else
files.append({path, root});
}
};