Commit 6e8550c8 authored by David Redondo's avatar David Redondo 🏎

Always emit sensorMetaDataChanged() when receiving a metaData update

Otherwise listerners that listen to that signal but not dataChanged might miss the update.
parent 39aa0184
......@@ -364,6 +364,7 @@ void SensorDataModel::onMetaDataChanged(const QString &sensorId, const SensorInf
if (d->sensorInfos.contains(sensorId)) {
d->sensorInfos[sensorId] = info;
Q_EMIT dataChanged(index(0, column), index(0, column), {Qt::DisplayRole, Name, ShortName, Description, Unit, Minimum, Maximum, Type, FormattedValue});
Q_EMIT sensorMetaDataChanged();
return;
}
......
Markdown is supported
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