mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 03:45:35 +08:00
refs #626 Empty type name indicates an empty variant, no warning in this case.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user