windeployqt: Fix handling of the --no-webkit2 option.
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Mon, 17 Aug 2015 13:32:35 +0000 (15:32 +0200)
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Mon, 17 Aug 2015 14:37:48 +0000 (14:37 +0000)
The option formerly was a boolean value and one if-statement
was overlooked when changing it into an enumeration value
of type ExlusiveOptionValue.

Task-number: QTBUG-47785
Change-Id: I6135a6268221841025fd05928cea50ffa6fbdea9
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
src/windeployqt/main.cpp

index e5a1f0b..a728e4c 100644 (file)
@@ -1447,7 +1447,7 @@ int main(int argc, char **argv)
         return 1;
     }
 
-    if (optWebKit2)
+    if (optWebKit2 == OptionEnabled)
         options.additionalLibraries |= QtWebKitModule;