Fix some bugs in scripting
This commit is contained in:
+4
-1
@@ -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});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user