Crash if a runconfiguration with a removed pro file gets loaded.

This commit is contained in:
dt
2009-05-04 18:55:31 +02:00
parent 87a253b38b
commit daa4fd831a

View File

@@ -332,6 +332,13 @@ void Qt4RunConfiguration::updateTarget()
//qDebug()<<"updateTarget";
Qt4Project *pro = static_cast<Qt4Project *>(project());
Qt4PriFileNode * priFileNode = static_cast<Qt4Project *>(project())->rootProjectNode()->findProFileFor(m_proFilePath);
if (!priFileNode) {
m_workingDir = QString::null;
m_executable = QString::null;
m_cachedTargetInformationValid = true;
emit effectiveTargetInformationChanged();
return;
}
ProFileReader *reader = priFileNode->createProFileReader();
reader->setCumulative(false);
reader->setQtVersion(pro->qtVersion(pro->activeBuildConfiguration()));