mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 15:32:40 +02:00
Fix from string equals to contains to account for working formats not correctly detected with suffix
This commit is contained in:
parent
86dc478dbb
commit
09c7a61599
1 changed files with 1 additions and 1 deletions
|
@ -428,7 +428,7 @@ QString ScriptEngine::getFilename() const {
|
|||
bool ScriptEngine::hasValidScriptSuffix(const QString& scriptFileName) {
|
||||
QFileInfo fileInfo(scriptFileName);
|
||||
QString scriptSuffixToLower = fileInfo.completeSuffix().toLower();
|
||||
return ((scriptSuffixToLower == "js") || (scriptSuffixToLower == "json"));
|
||||
return scriptSuffixToLower.contains(QString("js"), Qt::CaseInsensitive);
|
||||
}
|
||||
|
||||
void ScriptEngine::loadURL(const QUrl& scriptURL, bool reload) {
|
||||
|
|
Loading…
Reference in a new issue