forked from qt-creator/qt-creator
Utils: Add compatibility for older settings
Adds compatibility for older settings - likely only relevant for settings of snapshots or development QCs. Change-Id: Icb6a9c054dea4deac5adbc4255bc60dcd6c14ea7 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -35,6 +35,9 @@ Store storeFromVariant(const QVariant &value)
|
|||||||
if (value.typeId() == QMetaType::QVariantMap)
|
if (value.typeId() == QMetaType::QVariantMap)
|
||||||
return storeFromMap(value.toMap());
|
return storeFromMap(value.toMap());
|
||||||
|
|
||||||
|
if (value.typeId() == qMetaTypeId<OldStore>())
|
||||||
|
return storeFromMap(value.toMap());
|
||||||
|
|
||||||
if (!value.isValid())
|
if (!value.isValid())
|
||||||
return {};
|
return {};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user