summaryrefslogtreecommitdiffstats
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>2010-10-19 16:31:11 -0200
commit2106919936da6d34a1319ad20e283f8cf8fffbce (patch)
tree71030358d663615c3c4710902f2bc3520a86a00e /generator/shibokengenerator.cpp
parentc464a4d10b59396115acbd0340fb15f00d71290b (diff)
downloadshiboken-2106919936da6d34a1319ad20e283f8cf8fffbce.tar.gz
shiboken-2106919936da6d34a1319ad20e283f8cf8fffbce.tar.xz
shiboken-2106919936da6d34a1319ad20e283f8cf8fffbce.zip
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 e7d0b7de..a1606e85 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;