diff --git a/src/orm/utils/type.cpp b/src/orm/utils/type.cpp index 0b24fb29b..cb85fa235 100644 --- a/src/orm/utils/type.cpp +++ b/src/orm/utils/type.cpp @@ -67,10 +67,10 @@ QString Type::prettyFunction(const QString &function) bool Type::isTrue(const QString &value) { return !value.isEmpty() && - value != QLatin1Char('0') && - value != QStringLiteral("false") && - // QVariant::value() doesn't check conditions below - value != QStringLiteral("off"); + value != QLatin1Char('0') && + value.compare(QStringLiteral("false"), Qt::CaseInsensitive) != 0 && + // QVariant::value() doesn't check conditions below + value.compare(QStringLiteral("off"), Qt::CaseInsensitive) != 0; } bool Type::isTrue(const QVariant &value)