Commit 07971195 authored by BogDan Vatra's avatar BogDan Vatra

Fix potential crash.

Change-Id: I03c86d2071ce612424bac9bf92a25208d0ba9443
Reviewed-by: default avatarDaniel Teske <daniel.teske@theqtcompany.com>
parent 298e2de7
......@@ -304,7 +304,9 @@ void CreateAndroidManifestWizard::createAndroidTemplateFiles()
QStringList addedFiles;
QtSupport::BaseQtVersion *version = QtSupport::QtKitInformation::qtVersion(m_target->kit());
if (!version || version->qtVersion() < QtSupport::QtVersionNumber(5, 4, 0)) {
if (!version)
return;
if (version->qtVersion() < QtSupport::QtVersionNumber(5, 4, 0)) {
const QString src(version->qmakeProperty("QT_INSTALL_PREFIX")
.append(QLatin1String("/src/android/java/AndroidManifest.xml")));
FileUtils::copyRecursively(FileName::fromString(src),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment