aboutsummaryrefslogtreecommitdiffstats
path: root/generator/shibokengenerator.cpp
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-10-19 15:32:31 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:07:21 -0300
commitb85cd4fcab93247455de885bf117f1ac62a4921b (patch)
tree85e376f0f0282ba4ddaaa7f90e9cd36165aa9c3f /generator/shibokengenerator.cpp
parent3ca81abb5f99a00004546d86a725e0d8a0f5ae77 (diff)
Write right check type function when guessing the check function for a valid type.
Diffstat (limited to 'generator/shibokengenerator.cpp')
-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;