Make PySide signals work with meta types.
This commit is contained in:
parent
0ad9c484df
commit
a7cebb5917
1 changed files with 1 additions and 1 deletions
|
|
@ -496,7 +496,7 @@ char* getTypeName(PyObject* type)
|
|||
{
|
||||
if (PyType_Check(type)) {
|
||||
char *typeName = NULL;
|
||||
if (type->ob_type == &SbkObjectType_Type) {
|
||||
if (PyType_IsSubtype(reinterpret_cast<PyTypeObject*>(type), reinterpret_cast<PyTypeObject*>(&SbkObject_Type))) {
|
||||
SbkObjectType* objType = reinterpret_cast<SbkObjectType*>(type);
|
||||
typeName = strdup(Shiboken::ObjectType::getOriginalName(objType));
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue