diff options
Diffstat (limited to 'examples/script/qscript/main.cpp')
-rw-r--r-- | examples/script/qscript/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/script/qscript/main.cpp b/examples/script/qscript/main.cpp index 0a6bd4d..189b1ad 100644 --- a/examples/script/qscript/main.cpp +++ b/examples/script/qscript/main.cpp @@ -119,7 +119,7 @@ static QScriptValue importExtension(QScriptContext *context, QScriptEngine *engi static QScriptValue loadScripts(QScriptContext *context, QScriptEngine *engine) { for (int i = 0; i < context->argumentCount(); ++i) { - QString fileName = context->argument(0).toString(); + QString fileName = context->argument(i).toString(); QFile file(fileName); if (!file.open(QIODevice::ReadOnly)) return context->throwError(QString::fromLatin1("could not open %0 for reading").arg(fileName)); |