forked from qt-creator/qt-creator
Fix proFileUpdated signal, set correct parse in progress state
Change-Id: I1f7ca269115491323373fe5c4230bd38860c08ce Reviewed-on: http://codereview.qt.nokia.com/596 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
This commit is contained in:
@@ -1462,6 +1462,16 @@ bool Qt4ProFileNode::validParse() const
|
||||
return m_validParse;
|
||||
}
|
||||
|
||||
void Qt4ProFileNode::setParseInProgressRecursive()
|
||||
{
|
||||
m_parseInProgress = true;
|
||||
foreach (ProjectNode *subNode, subProjectNodes()) {
|
||||
if (Qt4ProFileNode *node = qobject_cast<Qt4ProFileNode *>(subNode)) {
|
||||
node->setParseInProgressRecursive();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool Qt4ProFileNode::parseInProgress() const
|
||||
{
|
||||
return m_parseInProgress;
|
||||
@@ -1469,7 +1479,7 @@ bool Qt4ProFileNode::parseInProgress() const
|
||||
|
||||
void Qt4ProFileNode::scheduleUpdate()
|
||||
{
|
||||
m_parseInProgress = true;
|
||||
setParseInProgressRecursive();
|
||||
emitProFileUpdated();
|
||||
m_project->scheduleAsyncUpdate(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user