summaryrefslogtreecommitdiff
path: root/src/cpp/lineGraph.cpp
diff options
context:
space:
mode:
authordodoradio <dodoradio@outlook.com>2023-07-20 18:34:39 +0100
committerdodoradio <dodoradio@outlook.com>2023-07-20 19:17:49 +0100
commitca28e5328d5e65faa6c9b718e8c0e47cf8f76b49 (patch)
tree1dfd814cc8234223b3979a13e1088c706576c122 /src/cpp/lineGraph.cpp
parent4ce8cdea4d5cad62546e4aa28c1ee9d3bbc41cd5 (diff)
Remove fileLoadStatus
This was missed when the code was moved from sensorlogd, and caused issues as the bool would arbitrarily be true or false.
Diffstat (limited to '')
-rw-r--r--src/cpp/lineGraph.cpp3
1 files changed, 2 insertions, 1 deletions
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();