Skip to content
Commit 4245546a authored by David Edmundson's avatar David Edmundson
Browse files

Fix warnings on invalid model indexes on startup

Various legend codepaths want to look up static metadata about a sensor.
We have this populated on startup potentially before any rows are
inserted into the model.

Calling data on an invalid index is a illegal, fortunately all of this
information is available in the header data before we have any rows.

Testing done: On the default history page I still have units and my
stacked CPU core graph correctly, but with less stderr
parent 13ee05e7
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