summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-07-11 19:01:42 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:17 -0300
commit4430af6307cc0aa599f99eb7aaa5570eb80a7bc2 (patch)
tree9ced987d807f050fd35b68b1c29e609e67821fcc
parent28510ddcf9d856c9ae351a30abb7593d418b7dd6 (diff)
Fix PySide code generation.sb-0.10.5
-rw-r--r--abstractmetabuilder.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/abstractmetabuilder.cpp b/abstractmetabuilder.cpp
index d8e5514c..f4a469f8 100644
--- a/abstractmetabuilder.cpp
+++ b/abstractmetabuilder.cpp
@@ -954,7 +954,8 @@ AbstractMetaEnum* AbstractMetaBuilder::traverseEnum(EnumModelItem enumItem, Abst
className = m_currentClass->typeEntry()->qualifiedCppName();
if (TypeDatabase::instance()->isEnumRejected(className, enumName)) {
- typeEntry->setCodeGeneration(TypeEntry::GenerateNothing);
+ if (typeEntry)
+ typeEntry->setCodeGeneration(TypeEntry::GenerateNothing);
m_rejectedEnums.insert(qualifiedName, GenerationDisabled);
return 0;
}