forked from qt-creator/qt-creator
Don't react to profileUpdated on failure or while still in progress
Change-Id: I88fa7b7e3165d3b89af4e68a1b1c17082f29510a Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
@@ -189,7 +189,7 @@ void Qt4BuildConfiguration::ctor()
|
||||
connect(this, SIGNAL(environmentChanged()),
|
||||
this, SLOT(emitProFileEvaluateNeeded()));
|
||||
connect(qt4Target()->qt4Project(), SIGNAL(proFileUpdated(Qt4ProjectManager::Qt4ProFileNode*,bool,bool)),
|
||||
this, SLOT(proFileUpdated()));
|
||||
this, SLOT(proFileUpdated(Qt4ProjectManager::Qt4ProFileNode*,bool,bool)));
|
||||
|
||||
QtSupport::QtVersionManager *vm = QtSupport::QtVersionManager::instance();
|
||||
connect(vm, SIGNAL(qtVersionsChanged(QList<int>)),
|
||||
@@ -204,10 +204,12 @@ void Qt4BuildConfiguration::emitBuildDirectoryChanged()
|
||||
}
|
||||
}
|
||||
|
||||
void Qt4BuildConfiguration::proFileUpdated()
|
||||
void Qt4BuildConfiguration::proFileUpdated(Qt4ProjectManager::Qt4ProFileNode *, bool success, bool parseInProgress)
|
||||
{
|
||||
// Changing the included Qt modules from 0 to at least one might have caused the
|
||||
// tool chain to become invalid.
|
||||
if (!success || parseInProgress)
|
||||
return;
|
||||
if (!qt4Target()->possibleToolChains(this).contains(toolChain()))
|
||||
setToolChain(qt4Target()->preferredToolChain(this));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user