forked from qt-creator/qt-creator
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:
@@ -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";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user