Commit 074206129eb039854affa424b571c89cb39c69a1
1 parent
fa4557b7
fixed setting boolean variables from the command line -- it turns out that empty strings aren't null
Showing
1 changed file
with
1 additions
and
1 deletions
openbr/openbr_plugin.cpp
| ... | ... | @@ -812,7 +812,7 @@ float br::Context::progress() const |
| 812 | 812 | |
| 813 | 813 | void br::Context::setProperty(const QString &key, const QString &value) |
| 814 | 814 | { |
| 815 | - Object::setProperty(key, value); | |
| 815 | + Object::setProperty(key, value.isEmpty() ? QVariant() : value); | |
| 816 | 816 | qDebug("Set %s%s", qPrintable(key), value.isEmpty() ? "" : qPrintable(" to " + value)); |
| 817 | 817 | |
| 818 | 818 | if (key == "parallelism") { | ... | ... |