diff --git a/src/scriptable/scriptable.cpp b/src/scriptable/scriptable.cpp index dd9ccaff0c2274356a4da97b2b5448eb47ccceaa..82a50949e11846349da3f4532920d034cdfe6e7c 100644 --- a/src/scriptable/scriptable.cpp +++ b/src/scriptable/scriptable.cpp @@ -1341,7 +1341,7 @@ QScriptValue Scriptable::source() QByteArray script; { - QFile scriptFile(scriptFilePath); + QFile scriptFile( getFileName(scriptFilePath) ); if ( !scriptFile.open(QIODevice::ReadOnly) ) { throwError( QString("Failed to open \"%1\": %2") .arg(scriptFilePath)