summaryrefslogtreecommitdiff
path: root/src
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
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 'src')
-rw-r--r--src/cpp/lineGraph.cpp3
-rw-r--r--src/cpp/lineGraph.h1
2 files changed, 2 insertions, 2 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();
diff --git a/src/cpp/lineGraph.h b/src/cpp/lineGraph.h
index 59cbb68..4ee4655 100644
--- a/src/cpp/lineGraph.h
+++ b/src/cpp/lineGraph.h
@@ -76,7 +76,6 @@ private:
QColor m_color = QColor(255,255,255);
QPixmap m_pixmap;
QList<QPointF> m_filedata;
- bool m_fileLoadStatus;
int minValue = 0;
int maxValue = 0;
int minTime;