diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp index 0d34547a3e..7937573e05 100644 --- a/tools/configure/configureapp.cpp +++ b/tools/configure/configureapp.cpp @@ -2771,9 +2771,7 @@ void Configure::generateCachefile() if (cacheFile.open(QFile::WriteOnly | QFile::Text)) { // Truncates any existing file. QTextStream cacheStream(&cacheFile); - for (QStringList::Iterator var = qmakeVars.begin(); var != qmakeVars.end(); ++var) { - cacheStream << (*var) << endl; - } + // nothing left here cacheStream.flush(); cacheFile.close(); @@ -2838,6 +2836,9 @@ void Configure::generateCachefile() moduleStream << " nostrip"; moduleStream << endl; + for (QStringList::Iterator var = qmakeVars.begin(); var != qmakeVars.end(); ++var) + moduleStream << (*var) << endl; + moduleStream.flush(); moduleFile.close(); }