Commit de7d2d7a authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner: Hotfix for older puppets



Older puppets crashes if we send enumerations so we convert them before.
This patch has to be reverted in master.

Change-Id: Id33e776616ea6e74c7b14799e3aed130c39f8fed
Hotfix: 3.1
Reviewed-by: default avatarAlessandro Portale <alessandro.portale@digia.com>
parent 71da9c4a
......@@ -28,6 +28,7 @@
****************************************************************************/
#include "propertyvaluecontainer.h"
#include <enumeration.h>
#include <QtDebug>
......@@ -44,6 +45,8 @@ PropertyValueContainer::PropertyValueContainer(qint32 instanceId, const Property
m_value(value),
m_dynamicTypeName(dynamicTypeName)
{
if (m_value.canConvert<Enumeration>())
m_value = QVariant::fromValue(value.value<Enumeration>().nameToString());
}
qint32 PropertyValueContainer::instanceId() const
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment