aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--generator/shibokengenerator.cpp2
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;