forked from qt-creator/qt-creator
Crash: Fix crash when importing broken Qt versions
Fix a crash when importing a build, using a qmake that is broken. I ran into this crash with a 32bit qmake used in a pure 64bit userland. Change-Id: I08acb8d5f2cd72c873a30be5e45324f6daef702c Reviewed-on: http://codereview.qt.nokia.com/2181 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -370,7 +370,7 @@ void Qt4ProjectConfigWidget::updateImportLabel()
|
||||
newVersion = QtSupport::QtVersionFactory::createQtVersionFromQMakePath(qmakePath);
|
||||
mustDelete = true;
|
||||
}
|
||||
targetMatches = newVersion->supportsTargetId(m_buildConfiguration->target()->id());
|
||||
targetMatches = newVersion ? newVersion->supportsTargetId(m_buildConfiguration->target()->id()) : false;
|
||||
if (mustDelete)
|
||||
delete newVersion;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user