forked from qt-creator/qt-creator
surround file inclusion with saving/restoring condition state
This commit is contained in:
@@ -1782,7 +1782,10 @@ bool ProFileEvaluator::Private::evaluateConditionalFunction(
|
|||||||
// ### this breaks if we have include(c:/reallystupid.pri) but IMHO that's really bad style.
|
// ### this breaks if we have include(c:/reallystupid.pri) but IMHO that's really bad style.
|
||||||
QDir currentProPath(currentDirectory());
|
QDir currentProPath(currentDirectory());
|
||||||
fileName = QDir::cleanPath(currentProPath.absoluteFilePath(fileName));
|
fileName = QDir::cleanPath(currentProPath.absoluteFilePath(fileName));
|
||||||
return evaluateFile(fileName);
|
State sts = m_sts;
|
||||||
|
bool ok = evaluateFile(fileName);
|
||||||
|
m_sts = sts;
|
||||||
|
return ok;
|
||||||
}
|
}
|
||||||
case T_LOAD: {
|
case T_LOAD: {
|
||||||
if (m_skipLevel && !m_cumulative)
|
if (m_skipLevel && !m_cumulative)
|
||||||
|
|||||||
Reference in New Issue
Block a user