forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.5' into 4.6
Change-Id: I9277a92341ede8292978f2684eadcade04689983
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -140,7 +140,7 @@ QbsProject::QbsProject(const FileName &fileName) :
|
||||
connect(this, &Project::removedTarget,
|
||||
this, [this](Target *t) {m_qbsProjects.remove(t); });
|
||||
auto delayedParsing = [this]() {
|
||||
if (static_cast<BuildConfiguration *>(sender())->isActive())
|
||||
if (static_cast<ProjectConfiguration *>(sender())->isActive())
|
||||
delayParsing();
|
||||
};
|
||||
subscribeSignal(&BuildConfiguration::environmentChanged, this, delayedParsing);
|
||||
@@ -529,8 +529,11 @@ void QbsProject::handleRuleExecutionDone()
|
||||
|
||||
void QbsProject::changeActiveTarget(Target *t)
|
||||
{
|
||||
if (t)
|
||||
if (t) {
|
||||
m_qbsProject = m_qbsProjects.value(t);
|
||||
if (t->isActive())
|
||||
delayParsing();
|
||||
}
|
||||
}
|
||||
|
||||
void QbsProject::startParsing()
|
||||
|
Reference in New Issue
Block a user