diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp index c6d1002f23f..350ce630873 100644 --- a/tools/configure/configureapp.cpp +++ b/tools/configure/configureapp.cpp @@ -2536,12 +2536,14 @@ void Configure::generateOutputVars() else qtConfig += "shared"; + if (dictionary[ "GUI" ] == "no") { + qtConfig += "no-gui"; + dictionary [ "WIDGETS" ] = "no"; + } + if (dictionary[ "WIDGETS" ] == "no") qtConfig += "no-widgets"; - if (dictionary[ "GUI" ] == "no") - qtConfig += "no-gui"; - // Compression -------------------------------------------------- if (dictionary[ "ZLIB" ] == "qt") qtConfig += "zlib";