diff --git a/src/ui/uas/UASQuickView.cc b/src/ui/uas/UASQuickView.cc index f5b829a90e096de060710d9ecc0ec9a4bb87c06e..5749168d624650cf277e3d8f5f7b7d9616a5af57 100644 --- a/src/ui/uas/UASQuickView.cc +++ b/src/ui/uas/UASQuickView.cc @@ -275,7 +275,8 @@ void UASQuickView::valueChanged(const int uasId, const QString& name, const QStr Q_UNUSED(unit); bool ok; double value = variant.toDouble(&ok); - if(!ok || variant.type() == QMetaType::QString || variant.type() == QMetaType::QByteArray) + QMetaType metaType = static_cast(variant.type()); + if(!ok || metaType == QMetaType::QString || metaType == QMetaType::QByteArray) return; if (!uasPropertyValueMap.contains(name))