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