diff options
-rw-r--r-- | generator/shibokengenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/shibokengenerator.cpp b/generator/shibokengenerator.cpp index e7d0b7de7..a1606e85e 100644 --- a/generator/shibokengenerator.cpp +++ b/generator/shibokengenerator.cpp @@ -815,7 +815,7 @@ QString ShibokenGenerator::guessCPythonCheckFunction(const QString& type) { QString retval; AbstractMetaType* metaType = buildAbstractMetaTypeFromString(type); - if (metaType && (metaType->name() != type)) { + if (metaType && !metaType->typeEntry()->isCustom()) { retval = cpythonCheckFunction(metaType); delete metaType; metaType = 0; |