mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Fix invalid check for null object in registerGetterSetter
This commit is contained in:
parent
9e684a0bc8
commit
701fcd3542
1 changed files with 1 additions and 1 deletions
|
@ -262,7 +262,7 @@ void ScriptEngine::registerGetterSetter(const QString& name, QScriptEngine::Func
|
|||
QScriptValue setterFunction = _engine.newFunction(setter, 1);
|
||||
QScriptValue getterFunction = _engine.newFunction(getter);
|
||||
|
||||
if (object.isNull()) {
|
||||
if (!object.isNull()) {
|
||||
object.setProperty(name, setterFunction, QScriptValue::PropertySetter);
|
||||
object.setProperty(name, getterFunction, QScriptValue::PropertyGetter);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue