aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlproperty.cpp
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2019-09-04 14:48:14 +0200
committerFabian Kosmale <fabian.kosmale@qt.io>2019-09-05 19:57:34 +0200
commitc550b71fb93279a1788aec809c874b779d88b987 (patch)
tree2bfa4c608c5b63292078df34f581aea0a8e2614f /src/qml/qml/qqmlproperty.cpp
parent48174f5b356afe74929102906b17a0c13a7a8a5b (diff)
Remove assert when setting binding to alias
This assert would only ever trigger in a debug Qt build, and the code appears to work just fine for aliases. The reason for the assert seems to have been lost in time. Fixes: QTBUG-60908 Change-Id: Ibdcd8edf3b2dd549650b3aadfcce2724a50360e3 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlproperty.cpp')
-rw-r--r--src/qml/qml/qqmlproperty.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlproperty.cpp b/src/qml/qml/qqmlproperty.cpp
index 5f57e0eca1..eff3e94fbd 100644
--- a/src/qml/qml/qqmlproperty.cpp
+++ b/src/qml/qml/qqmlproperty.cpp
@@ -885,7 +885,7 @@ void QQmlPropertyPrivate::setBinding(QQmlAbstractBinding *binding, BindingFlags
QQmlData *data = QQmlData::get(object, true);
if (data->propertyCache) {
QQmlPropertyData *propertyData = data->propertyCache->property(coreIndex);
- Q_ASSERT(propertyData && !propertyData->isAlias());
+ Q_ASSERT(propertyData);
}
#endif