mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 04:03:59 +02:00
Merge pull request #5827 from jherico/homer
fix ScriptEngine location property
This commit is contained in:
commit
0a41ab2f41
1 changed files with 1 additions and 1 deletions
|
@ -405,7 +405,7 @@ void ScriptEngine::registerGetterSetter(const QString& name, QScriptEngine::Func
|
|||
QScriptValue setterFunction = newFunction(setter, 1);
|
||||
QScriptValue getterFunction = newFunction(getter);
|
||||
|
||||
if (!parent.isNull()) {
|
||||
if (!parent.isNull() && !parent.isEmpty()) {
|
||||
QScriptValue object = globalObject().property(parent);
|
||||
if (object.isValid()) {
|
||||
object.setProperty(name, setterFunction, QScriptValue::PropertySetter);
|
||||
|
|
Loading…
Reference in a new issue