Windows: Fix verbose debug output
authorMiikka Heikkinen <miikka.heikkinen@digia.com>
Thu, 24 May 2012 10:55:34 +0000 (13:55 +0300)
committerQt by Nokia <qt-info@nokia.com>
Thu, 24 May 2012 15:52:52 +0000 (17:52 +0200)
The isEmpty() check for environment variable contents was inverted.

Change-Id: Ic220f4eed9e45539d6e89fe1e0d37976f7757eda
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
src/plugins/platforms/windows/qwindowscontext.cpp

index 0a1ca13..8601d60 100644 (file)
@@ -296,7 +296,7 @@ QWindowsContext::QWindowsContext() :
 #endif
     m_instance = this;
     const QByteArray bv = qgetenv("QT_QPA_VERBOSE");
-    if (bv.isEmpty()) {
+    if (!bv.isEmpty()) {
         const char *v = bv.data();
         QWindowsContext::verboseIntegration = componentVerbose(v, "integration");
         QWindowsContext::verboseWindows = componentVerbose(v, "windows");