Qt4ProjectManager: Add some safety code

Might, or might not fix
Task-Nr: QTCREATORBUG-2361
This commit is contained in:
dt
2010-10-25 17:26:41 +02:00
parent a96267ea12
commit af7b39e3a7
2 changed files with 5 additions and 0 deletions

View File

@@ -628,6 +628,8 @@ void Qt4Project::update()
void Qt4Project::scheduleAsyncUpdate(Qt4ProFileNode *node)
{
if (m_asyncUpdateState == ShuttingDown)
return;
if (debug)
qDebug()<<"schduleAsyncUpdate (node)";
Q_ASSERT(m_asyncUpdateState != NoState);
@@ -694,6 +696,8 @@ void Qt4Project::scheduleAsyncUpdate()
{
if (debug)
qDebug()<<"scheduleAsyncUpdate";
if (m_asyncUpdateState == ShuttingDown)
return;
Q_ASSERT(m_asyncUpdateState != NoState);
if (m_cancelEvaluate) { // we are in progress of canceling
// and will start the evaluation after that