Utils: Use the user-set default value when (not) saving values

Change-Id: Iae05d767e28afcfbb581089f6253b633f1aab468
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
hjk
2021-03-01 08:57:01 +01:00
parent 632993a9b2
commit a5d5887908

View File

@@ -782,7 +782,7 @@ void StringAspect::fromMap(const QVariantMap &map)
*/ */
void StringAspect::toMap(QVariantMap &map) const void StringAspect::toMap(QVariantMap &map) const
{ {
saveToMap(map, value(), QString()); saveToMap(map, value(), defaultValue());
if (d->m_checker) if (d->m_checker)
d->m_checker->toMap(map); d->m_checker->toMap(map);
} }