forked from qt-creator/qt-creator
QmlDesigner: Fix crash if build target is not defined
Change-Id: Ieae55ff1a5f5de132f10ee5b51bab610ece8e39a Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -57,10 +57,12 @@ void MeshImageCacheCollector::start(Utils::SmallStringView name,
|
||||
if (file.open()) {
|
||||
QString qtQuickVersion;
|
||||
QString qtQuick3DVersion;
|
||||
QtSupport::QtVersion *qtVersion = QtSupport::QtKitAspect::qtVersion(target()->kit());
|
||||
if (qtVersion && qtVersion->qtVersion() < QtSupport::QtVersionNumber(6, 0, 0)) {
|
||||
qtQuickVersion = "2.15";
|
||||
qtQuick3DVersion = "1.15";
|
||||
if (target()) {
|
||||
QtSupport::QtVersion *qtVersion = QtSupport::QtKitAspect::qtVersion(target()->kit());
|
||||
if (qtVersion && qtVersion->qtVersion() < QtSupport::QtVersionNumber(6, 0, 0)) {
|
||||
qtQuickVersion = "2.15";
|
||||
qtQuick3DVersion = "1.15";
|
||||
}
|
||||
}
|
||||
|
||||
QString content{
|
||||
|
Reference in New Issue
Block a user