mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-25 07:31: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;
|
||||
}
|
||||
|
||||
if (PyType_IsSubtype((PyTypeObject *)type, Py_TYPE(ParentImpl)))
|
||||
if (PyObject_IsInstance(ParentImpl, type))
|
||||
return ParentImpl;
|
||||
|
||||
Py_DECREF(ParentImpl);
|
||||
|
Loading…
Reference in New Issue
Block a user