summaryrefslogtreecommitdiffstats
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-rw-r--r--framework/actions/action.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/actions/action.cpp b/framework/actions/action.cpp
index 096c93cc..e6ba2daf 100644
--- a/framework/actions/action.cpp
+++ b/framework/actions/action.cpp
@@ -46,7 +46,7 @@ Action::Action(const QByteArray &actionId, Context &context, QObject *parent)
46void Action::setContext(Context *context) 46void Action::setContext(Context *context)
47{ 47{
48 //Get notified when any property changes 48 //Get notified when any property changes
49 for (int i = 0; i < context->metaObject()->propertyCount(); i++) { 49 for (int i = context->metaObject()->propertyOffset(); i < context->metaObject()->propertyCount(); i++) {
50 auto property = context->metaObject()->property(i) ; 50 auto property = context->metaObject()->property(i) ;
51 // qWarning() << "Property " << property.name() << property.hasNotifySignal() << property.notifySignal().name(); 51 // qWarning() << "Property " << property.name() << property.hasNotifySignal() << property.notifySignal().name();
52 if (QString(property.name()) != "objectName") { 52 if (QString(property.name()) != "objectName") {