Change QT_FATAL_WARNINGS behavior to require a non-empty value

This allows easy unsetting of the variable in a shell like:
  QT_FATAL_WARNINGS= progname

Change-Id: Ie9cfb6ebfd4931de1c90af68bfeeae1e9f3d4b9d
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
bb10
Thiago Macieira 2013-01-10 23:07:57 -08:00 committed by The Qt Project
parent b862f43e36
commit 2da24ac2b9
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ static bool isFatal(QtMsgType msgType)
return true;
if (msgType == QtWarningMsg) {
static bool fatalWarnings = qEnvironmentVariableIsSet("QT_FATAL_WARNINGS");
static bool fatalWarnings = !qEnvironmentVariableIsEmpty("QT_FATAL_WARNINGS");
return fatalWarnings;
}