From 074206129eb039854affa424b571c89cb39c69a1 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Wed, 31 Jul 2013 10:40:27 -0400 Subject: [PATCH] fixed setting boolean variables from the command line -- it turns out that empty strings aren't null --- openbr/openbr_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbr/openbr_plugin.cpp b/openbr/openbr_plugin.cpp index 832d7b4..bc0515e 100644 --- a/openbr/openbr_plugin.cpp +++ b/openbr/openbr_plugin.cpp @@ -812,7 +812,7 @@ float br::Context::progress() const void br::Context::setProperty(const QString &key, const QString &value) { - Object::setProperty(key, value); + Object::setProperty(key, value.isEmpty() ? QVariant() : value); qDebug("Set %s%s", qPrintable(key), value.isEmpty() ? "" : qPrintable(" to " + value)); if (key == "parallelism") { -- libgit2 0.21.4