forked from qt-creator/qt-creator
QmakePM: Fix crash when Qt version is not set
Reported in the mailing list Change-Id: I111f66cdff99e7b9ee5bbfe887e87546377a137f Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
6b5bf41188
commit
e93484d480
@@ -651,7 +651,7 @@ QmakeBuildInfo *QmakeBuildConfigurationFactory::createBuildInfo(const Kit *k,
|
|||||||
|
|
||||||
// check if this project is in the source directory:
|
// check if this project is in the source directory:
|
||||||
Utils::FileName projectFilePath = Utils::FileName::fromString(projectPath);
|
Utils::FileName projectFilePath = Utils::FileName::fromString(projectPath);
|
||||||
if (version->isInSourceDirectory(projectFilePath)) {
|
if (version && version->isInSourceDirectory(projectFilePath)) {
|
||||||
// assemble build directory
|
// assemble build directory
|
||||||
QString projectDirectory = projectFilePath.toFileInfo().absolutePath();
|
QString projectDirectory = projectFilePath.toFileInfo().absolutePath();
|
||||||
QDir qtSourceDir = QDir(version->sourcePath().toString());
|
QDir qtSourceDir = QDir(version->sourcePath().toString());
|
||||||
|
Reference in New Issue
Block a user