mirror of
https://gitlab.com/Syping/luaengineapp.git
synced 2025-09-06 00:42:05 +02:00
fix tables, getDirectoryContent replaces directoyListFiles
This commit is contained in:
parent
1f0737a981
commit
96f0511b0f
4 changed files with 82 additions and 26 deletions
|
@ -56,7 +56,18 @@ int LuaEngineOS::executeProcess(lua_State *L_p)
|
|||
QString processPath = arguments.first().toString();
|
||||
arguments.removeFirst();
|
||||
for (const QVariant &argument : arguments) {
|
||||
processArguments << argument.toString();
|
||||
if ((QMetaType::Type)argument.type() == QMetaType::QVariantMap) {
|
||||
QVariantMap argumentMap = argument.toMap();
|
||||
QVariantMap::const_iterator it = argumentMap.constBegin();
|
||||
QVariantMap::const_iterator end = argumentMap.constEnd();
|
||||
while (it != end) {
|
||||
processArguments << it.value().toString();
|
||||
it++;
|
||||
}
|
||||
}
|
||||
else {
|
||||
processArguments << argument.toString();
|
||||
}
|
||||
}
|
||||
if (runInBackground) {
|
||||
processSuccessed = QProcess::startDetached(processPath, processArguments);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue