aboutsummaryrefslogtreecommitdiffstats
path: root/libpyside
diff options
context:
space:
mode:
authorrenatofilho <renato.filho@openbossa.org>2010-11-02 13:31:52 -0300
committerrenatofilho <renato.filho@openbossa.org>2010-11-03 10:29:40 -0300
commite9b0f3e4ae9b1d9cd72003a40200d121e179269e (patch)
tree06c6f46ec29f907b82095daafe4045c71e818275 /libpyside
parent5b0606009d478cf01d9b3d25110352823cdce0f4 (diff)
Fixed slot registration during the meta object constructor.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Lauro Neto <lauro.neto@openbossa.org>
Diffstat (limited to 'libpyside')
-rw-r--r--libpyside/dynamicqmetaobject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpyside/dynamicqmetaobject.cpp b/libpyside/dynamicqmetaobject.cpp
index 6ec65aaa1..e9a162d6a 100644
--- a/libpyside/dynamicqmetaobject.cpp
+++ b/libpyside/dynamicqmetaobject.cpp
@@ -435,7 +435,7 @@ DynamicQMetaObject* DynamicQMetaObject::createBasedOn(PyObject* pyObj, PyTypeObj
QString sig(PyString_AsString(signature));
//slot the slot type and signature
QStringList slotInfo = sig.split(" ", QString::SkipEmptyParts);
- int index = base->indexOfSlot(slotInfo[0].toAscii());
+ int index = base->indexOfSlot(qPrintable(slotInfo[1]));
if (index == -1)
mo->addSlot(slotInfo[1].toAscii(), slotInfo[0].toAscii());
}