summaryrefslogtreecommitdiffstats
path: root/framework/src/domain/controller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/domain/controller.cpp')
-rw-r--r--framework/src/domain/controller.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/src/domain/controller.cpp b/framework/src/domain/controller.cpp
index 82a761f6..21dbb69a 100644
--- a/framework/src/domain/controller.cpp
+++ b/framework/src/domain/controller.cpp
@@ -46,7 +46,9 @@ void ControllerAction::execute()
46void Controller::clear() 46void Controller::clear()
47{ 47{
48 auto meta = metaObject(); 48 auto meta = metaObject();
49 for (auto i = meta->propertyOffset(); i < meta->propertyCount(); i++) { 49 //FIXME meta->propertyOffset() changes as soon as we add a property from QML. We know that QObject has an offset of 1.
50 auto offset = 1;
51 for (auto i = offset; i < meta->propertyCount(); i++) {
50 auto property = meta->property(i); 52 auto property = meta->property(i);
51 setProperty(property.name(), QVariant()); 53 setProperty(property.name(), QVariant());
52 } 54 }