summaryrefslogtreecommitdiffstats
path: root/libpyside/dynamicqmetaobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libpyside/dynamicqmetaobject.cpp')
-rw-r--r--libpyside/dynamicqmetaobject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpyside/dynamicqmetaobject.cpp b/libpyside/dynamicqmetaobject.cpp
index 6ec65aa..e9a162d 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());
}