Commit 6d6ca7567740d396e1f803ad9dc7a0c64c3be24c
1 parent
48960598
re-add check in br::Object::setProperty, but only when not adding a dynamic
property.
Showing
1 changed file
with
3 additions
and
2 deletions
sdk/openbr_plugin.cpp
| ... | ... | @@ -618,8 +618,9 @@ void Object::setProperty(const QString &name, const QString &value) |
| 618 | 618 | } else { |
| 619 | 619 | variant = value; |
| 620 | 620 | } |
| 621 | - | |
| 622 | - QObject::setProperty(qPrintable(name), variant); | |
| 621 | + if (!QObject::setProperty(qPrintable(name), variant) && !type.isEmpty()) | |
| 622 | + qFatal("Failed to set %s::%s to: %s %s", | |
| 623 | + metaObject()->className(), qPrintable(name), qPrintable(value), qPrintable(type)); | |
| 623 | 624 | } |
| 624 | 625 | |
| 625 | 626 | QStringList br::Object::parse(const QString &string, char split) | ... | ... |