diff options
author | renatofilho <renato.filho@openbossa.org> | 2010-11-02 13:31:52 -0300 |
---|---|---|
committer | renatofilho <renato.filho@openbossa.org> | 2010-11-03 10:29:40 -0300 |
commit | e9b0f3e4ae9b1d9cd72003a40200d121e179269e (patch) | |
tree | 06c6f46ec29f907b82095daafe4045c71e818275 | |
parent | 5b0606009d478cf01d9b3d25110352823cdce0f4 (diff) | |
download | pyside-e9b0f3e4ae9b1d9cd72003a40200d121e179269e.tar.gz pyside-e9b0f3e4ae9b1d9cd72003a40200d121e179269e.tar.xz pyside-e9b0f3e4ae9b1d9cd72003a40200d121e179269e.zip |
Fixed slot registration during the meta object constructor.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Lauro Neto <lauro.neto@openbossa.org>
-rw-r--r-- | libpyside/dynamicqmetaobject.cpp | 2 |
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()); } |