forked from qt-creator/qt-creator
SettingsAccessor: Avoid soft assertion for inexistent file
abi.xml is optional, but if it is not found, some assertions are triggered. Change-Id: I5255d6070028605cf860eb38ff63d00743a476d9 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
b8156fdfe0
commit
406371cd53
@@ -507,7 +507,7 @@ VersionUpgrader *UpgradingSettingsAccessor::upgrader(const int version) const
|
|||||||
SettingsAccessor::RestoreData
|
SettingsAccessor::RestoreData
|
||||||
UpgradingSettingsAccessor::upgradeSettings(const RestoreData &data, const int targetVersion) const
|
UpgradingSettingsAccessor::upgradeSettings(const RestoreData &data, const int targetVersion) const
|
||||||
{
|
{
|
||||||
if (data.hasError())
|
if (data.hasError() || data.data.isEmpty())
|
||||||
return data;
|
return data;
|
||||||
|
|
||||||
QTC_ASSERT(targetVersion >= firstSupportedVersion(), return data);
|
QTC_ASSERT(targetVersion >= firstSupportedVersion(), return data);
|
||||||
|
Reference in New Issue
Block a user