diff --git a/src/blackmisc/variant.cpp b/src/blackmisc/variant.cpp index bf512cccf..dc223544b 100644 --- a/src/blackmisc/variant.cpp +++ b/src/blackmisc/variant.cpp @@ -142,6 +142,7 @@ namespace BlackMisc // Remark: Names "type" and "value" are also used for drag and drop // Changing the names here requires the change for drag and drop too QString typeName = json.value("type").toString(); + if (typeName.isEmpty()) { m_v.clear(); return; } int typeId = QMetaType::type(qPrintable(typeName)); switch (typeId)