forked from qt-creator/qt-creator
QtSupport: Increase QtVersionData's version to 3
Qt Creator 12.0.0 has created presistent storage with empty QtAbis list. Qt Creator 12.0.1 has fixed this issue. By increasing the version number to 3 we force the saved data from Qt Creator 12.0.0 to be recreated, and thus fix Android issues with empty QtAbis lists. Also make sure that an empty QtAbis is loaded. Fixes: QTCREATORBUG-30208 Change-Id: I89a9a1ff810304127ff0387b80cb9a13f9740538 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -78,7 +78,7 @@ class QtVersionData
|
||||
{
|
||||
public:
|
||||
// Update version if you add data members!
|
||||
static const int version = 2;
|
||||
static const int version = 3;
|
||||
|
||||
bool installed = true;
|
||||
bool hasExamples = false;
|
||||
@@ -207,8 +207,11 @@ public:
|
||||
hostDataPath = FilePath::fromSettings(map.value("HostDataPath"));
|
||||
hostPrefixPath = FilePath::fromSettings(map.value("HostPrefixPath"));
|
||||
auto it = map.find("QtAbis");
|
||||
if (it != map.end())
|
||||
qtAbis = Utils::transform(it.value().toStringList(), &Abi::fromString);
|
||||
if (it != map.end()) {
|
||||
const auto qtAbisList = it.value().toStringList();
|
||||
if (!qtAbisList.isEmpty())
|
||||
qtAbis = Utils::transform(qtAbisList, &Abi::fromString);
|
||||
}
|
||||
versionInfo = fromStore(map.value("VersionInfo").value<Store>());
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user