forked from qt-creator/qt-creator
Android: android list target output doesn't always end with a marker
Handle the case where the output doesn't end in ==== Change-Id: Ia37f64259c3cae9a016d854dc1b056d9a4459a62 Reviewed-by: BogDan Vatra <bogdan@kde.org>
This commit is contained in:
@@ -306,6 +306,13 @@ void AndroidConfig::updateAvailableSdkPlatforms() const
|
||||
platform = SdkPlatform();
|
||||
}
|
||||
}
|
||||
|
||||
if (platform.apiLevel != -1) {
|
||||
auto it = qLowerBound(m_availableSdkPlatforms.begin(), m_availableSdkPlatforms.end(),
|
||||
platform, sortSdkPlatformByApiLevel);
|
||||
m_availableSdkPlatforms.insert(it, platform);
|
||||
}
|
||||
|
||||
m_availableSdkPlatformsUpToDate = true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user