Fix that opening qmake projects could result in delayed first parsing

Do not set the timer interval while the timer is running.

Change-Id: If72eb77fed88a5dda3f6356b1bd82aab781b160d
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
Eike Ziller
2014-10-13 16:26:10 +02:00
committed by Eike Ziller
parent 135a0dfb0e
commit ee9d433ca6

View File

@@ -427,7 +427,6 @@ bool QmakeProject::fromMap(const QVariantMap &map)
this, SLOT(activeTargetWasChanged())); this, SLOT(activeTargetWasChanged()));
scheduleAsyncUpdate(); scheduleAsyncUpdate();
m_asyncUpdateTimer.setInterval(3000);
return true; return true;
} }
@@ -846,6 +845,7 @@ bool QmakeProject::wasEvaluateCanceled()
void QmakeProject::asyncUpdate() void QmakeProject::asyncUpdate()
{ {
m_asyncUpdateTimer.setInterval(3000);
if (debug) if (debug)
qDebug()<<"async update, timer expired, doing now"; qDebug()<<"async update, timer expired, doing now";