Fix incorrect getToggleOptionValue behavior
This commit is contained in:
parent
1fd545ae1f
commit
9cb4105aec
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ public:
|
||||||
|
|
||||||
bool getToggleOptionValue(QString name, bool defaultValue) const
|
bool getToggleOptionValue(QString name, bool defaultValue) const
|
||||||
{
|
{
|
||||||
static QRegularExpression re(QString("^(%1|no-%1)$").arg(name));
|
QRegularExpression re(QString("^(%1|no-%1)$").arg(name));
|
||||||
QStringList options = optionNames().filter(re);
|
QStringList options = optionNames().filter(re);
|
||||||
if (options.isEmpty()) {
|
if (options.isEmpty()) {
|
||||||
return defaultValue;
|
return defaultValue;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue