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()) {
|
if (file.open()) {
|
||||||
QString qtQuickVersion;
|
QString qtQuickVersion;
|
||||||
QString qtQuick3DVersion;
|
QString qtQuick3DVersion;
|
||||||
QtSupport::QtVersion *qtVersion = QtSupport::QtKitAspect::qtVersion(target()->kit());
|
if (target()) {
|
||||||
if (qtVersion && qtVersion->qtVersion() < QtSupport::QtVersionNumber(6, 0, 0)) {
|
QtSupport::QtVersion *qtVersion = QtSupport::QtKitAspect::qtVersion(target()->kit());
|
||||||
qtQuickVersion = "2.15";
|
if (qtVersion && qtVersion->qtVersion() < QtSupport::QtVersionNumber(6, 0, 0)) {
|
||||||
qtQuick3DVersion = "1.15";
|
qtQuickVersion = "2.15";
|
||||||
|
qtQuick3DVersion = "1.15";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QString content{
|
QString content{
|
||||||
|
Reference in New Issue
Block a user