Fix QUiLoader::load function ownership rules.
fixes bug #909. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
This commit is contained in:
parent
51ea3a5230
commit
07285f0d28
1 changed files with 4 additions and 2 deletions
|
|
@ -102,6 +102,7 @@
|
||||||
<rename to="parentWidget" />
|
<rename to="parentWidget" />
|
||||||
</modify-argument>
|
</modify-argument>
|
||||||
<modify-argument index="return">
|
<modify-argument index="return">
|
||||||
|
<define-ownership class="target" owner="target"/>
|
||||||
<parent index="2" action="add" />
|
<parent index="2" action="add" />
|
||||||
</modify-argument>
|
</modify-argument>
|
||||||
<inject-code>
|
<inject-code>
|
||||||
|
|
@ -120,6 +121,7 @@
|
||||||
<rename to="parentWidget" />
|
<rename to="parentWidget" />
|
||||||
</modify-argument>
|
</modify-argument>
|
||||||
<modify-argument index="return">
|
<modify-argument index="return">
|
||||||
|
<define-ownership class="target" owner="target"/>
|
||||||
<parent index="2" action="add" />
|
<parent index="2" action="add" />
|
||||||
</modify-argument>
|
</modify-argument>
|
||||||
<inject-code>
|
<inject-code>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue