mirror of
https://github.com/ModOrganizer2/modorganizer-plugin_python.git
synced 2026-07-27 14:03:33 -07:00
Add missing PyUnicode_Check which prevented QVariants being created from Python 3 strings
This commit is contained in:
@@ -250,7 +250,7 @@ struct QVariant_from_python_obj
|
||||
}
|
||||
|
||||
static void *convertible(PyObject *objPtr) {
|
||||
if (!SIPBytes_Check(objPtr) && !PyLong_Check(objPtr) &&
|
||||
if (!SIPBytes_Check(objPtr) && !PyUnicode_Check(objPtr) && !PyLong_Check(objPtr) &&
|
||||
!PyBool_Check(objPtr) && !PyList_Check(objPtr)) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user