From 901cff6b3a03084660ec19c27b8a57ab7f008624 Mon Sep 17 00:00:00 2001 From: Charles Otto Date: Thu, 3 Jul 2014 13:15:46 -0400 Subject: [PATCH] Call init when a property is changed via setPropertyRecursive --- openbr/openbr_plugin.cpp | 1 + openbr/plugins/openbr_internal.h | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/openbr/openbr_plugin.cpp b/openbr/openbr_plugin.cpp index 9c59633..56fe04a 100644 --- a/openbr/openbr_plugin.cpp +++ b/openbr/openbr_plugin.cpp @@ -724,6 +724,7 @@ bool Object::setPropertyRecursive(const QString & name, QVariant value) qDebug() << "Class: " << metaObject()->className() << "took property" << name; setProperty(name, value); + init(); return true; } diff --git a/openbr/plugins/openbr_internal.h b/openbr/plugins/openbr_internal.h index 9a83163..e6a9967 100644 --- a/openbr/plugins/openbr_internal.h +++ b/openbr/plugins/openbr_internal.h @@ -206,7 +206,11 @@ public: if (br::Object::setPropertyRecursive(name, value)) return true; - return transform->setPropertyRecursive(name, value); + if (transform->setPropertyRecursive(name, value)) { + init(); + return true; + } + return false; } }; @@ -307,8 +311,10 @@ public: for (int i=0; i < this->transforms.size();i++) { - if (transforms[i]->setPropertyRecursive(name, value)) + if (transforms[i]->setPropertyRecursive(name, value)) { + init(); return true; + } } return false; } -- libgit2 0.21.4