diff options
-rw-r--r-- | generator/cppgenerator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp index ef8737a2..85058820 100644 --- a/generator/cppgenerator.cpp +++ b/generator/cppgenerator.cpp @@ -3054,8 +3054,8 @@ void CppGenerator::writeSignalInitialization(QTextStream& s, const AbstractMetaC foreach(QString signature, signatures[funcName]) s << ", \"" + signature << "\""; s << ", NULL);" << endl; - s << INDENT << "PyDict_SetItemString(" + cpythonTypeName(metaClass) + ".super.ht_type.tp_dict"; - s << ", \"" << funcName << "\", signal_item);" << endl; + s << INDENT << "PySide::addSignalToWrapper(&" + cpythonTypeName(metaClass) + ", \""; + s << funcName << "\", signal_item);" << endl; s << INDENT << "Py_DECREF(signal_item);" << endl; } s << endl; |