refs #626 Empty type name indicates an empty variant, no warning in this case.

This commit is contained in:
Mathew Sutcliffe
2016-04-03 20:55:00 +01:00
parent d20219437e
commit c934384622

View File

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