Commit 782dbe81 authored by David Redondo's avatar David Redondo 🏎
Browse files

Don't crash if there's no input subfeature

Apaprently not all sensors have an "input" subfeature for example
some can only have an "average" subfeature.

(cherry picked from commit 70550a94)
parent 67f6c8a8
......@@ -118,6 +118,10 @@ SensorsFeatureSensor* makeSensorsFeatureSensor(const sensors_chip_name * const c
return nullptr;
if (!valueFeature) {
return nullptr;
auto sensor = new SensorsFeatureSensor(QString::fromUtf8(feature->name), chipName, valueFeature, parent);
sensor->setName(prettyName(chipName, feature));
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