summaryrefslogtreecommitdiff
path: root/src/plugins/qbsprojectmanager
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2017-09-25 19:08:47 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2017-09-26 10:22:18 +0000
commitb70637de4127d645e843098ebeffeafefc53aea0 (patch)
treea2de20d2eea75fa648d62a824d410726e1f41f51 /src/plugins/qbsprojectmanager
parent1005fa9b68f61f56829f117177c27791991deb38 (diff)
downloadqt-creator-b70637de4127d645e843098ebeffeafefc53aea0.tar.gz
QbsProjectManager: Fix project parsing
Some recent ProjectExplorer refactorings caused the projects to stay in the parsing state indefinitely, making it impossible to build or run anything. Change-Id: I458a5560cc8d0c7c3183c0f104f00b073039f28e Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/qbsprojectmanager')
-rw-r--r--src/plugins/qbsprojectmanager/qbsproject.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/qbsprojectmanager/qbsproject.cpp b/src/plugins/qbsprojectmanager/qbsproject.cpp
index f9f212fcb0..1d0121eab0 100644
--- a/src/plugins/qbsprojectmanager/qbsproject.cpp
+++ b/src/plugins/qbsprojectmanager/qbsproject.cpp
@@ -142,12 +142,12 @@ QbsProject::QbsProject(const FileName &fileName) :
connect(this, &Project::removedTarget, this, &QbsProject::targetWasRemoved);
subscribeSignal(&BuildConfiguration::environmentChanged, this, [this]() {
if (static_cast<BuildConfiguration *>(sender())->isActive())
- startParsing();
+ delayParsing();
});
connect(this, &Project::activeProjectConfigurationChanged,
this, [this](ProjectConfiguration *pc) {
if (pc && pc->isActive())
- startParsing();
+ delayParsing();
});
connect(&m_parsingDelay, &QTimer::timeout, this, &QbsProject::startParsing);
@@ -447,6 +447,7 @@ bool QbsProject::checkCancelStatus()
qCDebug(qbsPmLog) << "Cancel request while parsing, starting re-parse";
m_qbsProjectParser->deleteLater();
m_qbsProjectParser = 0;
+ emitParsingFinished(false);
parseCurrentBuildConfiguration();
return true;
}
@@ -537,7 +538,6 @@ void QbsProject::handleRuleExecutionDone()
QTC_ASSERT(m_qbsProject.isValid(), return);
m_projectData = m_qbsProject.projectData();
updateAfterParse();
- // finishParsing(true);
}
void QbsProject::targetWasAdded(Target *t)