forked from qt-creator/qt-creator
QmlDesigner: Fix assert
Trying to serialize a void start using QVariant does assert. Solution: Ignore properties of type void star. This was triggered by TreeView. Change-Id: Idca5646a472fdfce8761861f5bf889bb73300fff Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
@@ -1048,7 +1048,7 @@ InformationChangedCommand NodeInstanceServer::createAllInformationChangedCommand
|
||||
static bool supportedVariantType(int type)
|
||||
{
|
||||
return type < int(QVariant::UserType) && type != QMetaType::QObjectStar
|
||||
&& type != QMetaType::QModelIndex;
|
||||
&& type != QMetaType::QModelIndex && type != QMetaType::VoidStar;
|
||||
}
|
||||
|
||||
ValuesChangedCommand NodeInstanceServer::createValuesChangedCommand(const QList<ServerNodeInstance> &instanceList) const
|
||||
|
Reference in New Issue
Block a user