summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-01-06 20:56:14 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2011-01-06 20:58:11 -0300
commitefdedcdd016c491b31e8432ec47b16d2265fdbfd (patch)
tree49e027d5e47eff5ff1a4ba97e4993b34410ce008
parent4d014eaa809da4d4f401decf730df5fc3587e4fd (diff)
downloadpyside-efdedcdd016c491b31e8432ec47b16d2265fdbfd.tar.gz
pyside-efdedcdd016c491b31e8432ec47b16d2265fdbfd.tar.xz
pyside-efdedcdd016c491b31e8432ec47b16d2265fdbfd.zip
Fixes the fix in the commit a1cf8f03.
Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Renato Ara├║jo <renato.filho@openbossa.org>
-rw-r--r--PySide/QtCore/glue/qobject_connect.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/PySide/QtCore/glue/qobject_connect.cpp b/PySide/QtCore/glue/qobject_connect.cpp
index f6b0dce..91a272c 100644
--- a/PySide/QtCore/glue/qobject_connect.cpp
+++ b/PySide/QtCore/glue/qobject_connect.cpp
@@ -4,7 +4,8 @@ static bool isDecorator(PyObject* method, PyObject* self)
if (!PyObject_HasAttr(self, methodName))
return true;
Shiboken::AutoDecRef otherMethod(PyObject_GetAttr(self, methodName));
- return otherMethod.object() != method;
+ return reinterpret_cast<PyMethodObject*>(otherMethod.object())->im_func != \
+ reinterpret_cast<PyMethodObject*>(method)->im_func;
}
static bool getReceiver(PyObject* callback, QObject** receiver, PyObject** self)