aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/QtCore/typesystem_core.xml
diff options
context:
space:
mode:
authorrenatofilho <renato.filho@openbossa.org>2010-09-16 14:14:45 -0300
committerrenatofilho <renato.filho@openbossa.org>2010-09-16 17:12:34 -0300
commit551f6b9c7240d1f68e50edcec0fc41969beaef1d (patch)
tree3e6c2878b7b59f3aeb129a5581529ddf4627e760 /PySide/QtCore/typesystem_core.xml
parentc06110168c39e5c44b9b11ff13fd6f9795199df3 (diff)
Fixed connection cleanup function.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'PySide/QtCore/typesystem_core.xml')
-rw-r--r--PySide/QtCore/typesystem_core.xml6
1 files changed, 4 insertions, 2 deletions
diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml
index 4d7e3e4f7..c0b333ff4 100644
--- a/PySide/QtCore/typesystem_core.xml
+++ b/PySide/QtCore/typesystem_core.xml
@@ -1230,8 +1230,10 @@
<inject-code class="target" position="beginning">
// Avoid return +1 because SignalManager connect to "destroyed()" signal to control object timelife
int ret = %CPPSELF.%FUNCTION_NAME(%1);
- if (ret > 0 &amp;&amp; strcmp(%1, SIGNAL(destroyed())) == 0 &amp;&amp; PySide::SignalManager::instance().hasConnectionWith(%CPPSELF))
- ret--;
+ if (ret > 0 &amp;&amp; ((strcmp(%1, SIGNAL(destroyed())) == 0) || (strcmp(%1, SIGNAL(destroyed(QObject*))) == 0))) {
+ if (PySide::SignalManager::instance().hasConnectionWith(%CPPSELF))
+ ret--;
+ }
%PYARG_0 = %CONVERTTOPYTHON[int](ret);
</inject-code>
</modify-function>