forked from qt-creator/qt-creator
Fix crash on unloading project
Note: A additional change merged from 2.5 is needed. Task-number: QTCREATORBUG-7524 Change-Id: I9cbbfaff40f5ddeba743cdb258e7cece64d2ad85 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -1345,6 +1345,9 @@ QString Qt4Project::disabledReasonForRunConfiguration(const QString &proFilePath
|
||||
return tr("The .pro file '%1' does not exist.")
|
||||
.arg(QFileInfo(proFilePath).fileName());
|
||||
|
||||
if (!m_rootProjectNode) // Shutting down
|
||||
return QString();
|
||||
|
||||
if (!m_rootProjectNode->findProFileFor(proFilePath))
|
||||
return tr("The .pro file '%1' is not part of the project.")
|
||||
.arg(QFileInfo(proFilePath).fileName());
|
||||
|
||||
Reference in New Issue
Block a user