diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2019-09-04 14:48:14 +0200 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2019-09-05 19:57:34 +0200 |
commit | c550b71fb93279a1788aec809c874b779d88b987 (patch) | |
tree | 2bfa4c608c5b63292078df34f581aea0a8e2614f /src/qml | |
parent | 48174f5b356afe74929102906b17a0c13a7a8a5b (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')
-rw-r--r-- | src/qml/qml/qqmlproperty.cpp | 2 |
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 |