@@ -217,7 +217,9 static PyObject* PythonQtClassWrapper_alloc(PyTypeObject *self, Py_ssize_t nitem | |||
|
217 | 217 | // take current class type, if we are called via newPythonQtClassWrapper() |
|
218 | 218 | PythonQtClassWrapper* wrap = (PythonQtClassWrapper*)obj; |
|
219 | 219 | wrap->_classInfo = PythonQt::priv()->currentClassInfoForClassWrapperCreation(); |
|
220 | initializeSlots(wrap); | |
|
220 | if (wrap->_classInfo) { | |
|
221 | initializeSlots(wrap); | |
|
222 | } | |
|
221 | 223 | |
|
222 | 224 | return obj; |
|
223 | 225 | } |
General Comments 0
You need to be logged in to leave comments.
Login now