aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetabuilder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'abstractmetabuilder.cpp')
-rw-r--r--abstractmetabuilder.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/abstractmetabuilder.cpp b/abstractmetabuilder.cpp
index 6bfee26cc..d2a0caa84 100644
--- a/abstractmetabuilder.cpp
+++ b/abstractmetabuilder.cpp
@@ -1317,7 +1317,8 @@ void AbstractMetaBuilder::traverseFunctions(ScopeModelItem scopeItem, AbstractMe
metaFunction->setPropertySpec(read);
}
} else if (QPropertySpec* write = metaClass->propertySpecForWrite(metaFunction->name())) {
- if (write->type() == metaFunction->arguments().at(0)->type()->typeEntry()) {
+ // make sure the function was created with all aguments, some argument can be missing during the pareser because of errors on typesystem
+ if ((metaFunction->arguments().size() == 1) && (write->type() == metaFunction->arguments().at(0)->type()->typeEntry())) {
*metaFunction += AbstractMetaAttributes::PropertyWriter;
metaFunction->setPropertySpec(write);
}