diff --git a/openbr/openbr_plugin.cpp b/openbr/openbr_plugin.cpp index d4df6d1..bbf29c7 100644 --- a/openbr/openbr_plugin.cpp +++ b/openbr/openbr_plugin.cpp @@ -848,13 +848,7 @@ int br::Context::blocks(int size) const bool br::Context::contains(const QString &name) { - QByteArray bytes = name.toLocal8Bit(); - const char * c_name = bytes.constData(); - - for (int i=0; ipropertyCount(); i++) - if (!strcmp(c_name, metaObject()->property(i).name())) - return true; - return false; + return property(qPrintable(name)).isValid(); } void br::Context::printStatus()