From ca28e5328d5e65faa6c9b718e8c0e47cf8f76b49 Mon Sep 17 00:00:00 2001 From: dodoradio Date: Thu, 20 Jul 2023 18:34:39 +0100 Subject: Remove fileLoadStatus This was missed when the code was moved from sensorlogd, and caused issues as the bool would arbitrarily be true or false. --- src/cpp/lineGraph.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/cpp/lineGraph.cpp') diff --git a/src/cpp/lineGraph.cpp b/src/cpp/lineGraph.cpp index be6fd86..7e013be 100644 --- a/src/cpp/lineGraph.cpp +++ b/src/cpp/lineGraph.cpp @@ -47,7 +47,8 @@ LineGraph::LineGraph() void LineGraph::paint(QPainter *painter) { - if (!m_fileLoadStatus) { + if (m_filedata.count() < 2) { + qDebug() << "not rendering, not enough data"; return; } int j = m_filedata.count(); -- cgit v1.2.3-54-g00ecf