Skip to content

Commit

Permalink
qtscript: Do not remove script groups when done with them. This is fo…
Browse files Browse the repository at this point in the history
…r 3.1 only. Closes ticket:3684
  • Loading branch information
perim committed Nov 20, 2012
1 parent 85caeb1 commit bf229a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/qtscriptfuncs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ static QScriptValue js_enumGroup(QScriptContext *context, QScriptEngine *engine)
static QScriptValue js_newGroup(QScriptContext *, QScriptEngine *)
{
DROID_GROUP *newGrp = grpCreate();
newGrp->add(NULL); // prevent it from being freed when empty
return QScriptValue(newGrp->id);
}

Expand Down

0 comments on commit bf229a5

Please sign in to comment.