mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-25 23:51:33 +08:00
Python Bindings: Fix findParent that was not working as expected (#349)
This commit is contained in:
parent
b5b251dffb
commit
130b0de646
@ -23,7 +23,7 @@ PyObject *qtads_FindParent(PyObject* type, const QWidget *w)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PyType_IsSubtype((PyTypeObject *)type, Py_TYPE(ParentImpl)))
|
if (PyObject_IsInstance(ParentImpl, type))
|
||||||
return ParentImpl;
|
return ParentImpl;
|
||||||
|
|
||||||
Py_DECREF(ParentImpl);
|
Py_DECREF(ParentImpl);
|
||||||
|
Loading…
Reference in New Issue
Block a user