Commit 67fcebe2 authored by Thiago Santini's avatar Thiago Santini

Fixes data recorder performance monitor enrolment

Early enrollment is done by the camera widget to make the order in the
performance monitor organized.
Since we changed the id for the data recorder, we are having one extra
entry, so we change the id AFTER enrolment.
parent e23b2b94
......@@ -3,8 +3,7 @@
using namespace cv;
DataRecorder::DataRecorder(QString id, QString header, QObject *parent)
: id(id.replace("Widget", "").replace(" ", "")),
header(header),
: header(header),
videoWriter(NULL),
dataFile(NULL),
dataStream(NULL),
......@@ -13,6 +12,7 @@ DataRecorder::DataRecorder(QString id, QString header, QObject *parent)
{
if (!id.contains("Journal"))
pmIdx = gPerformanceMonitor.enrol(id, "Data Recorder");
this->id = id.replace("Widget", "").replace(" ", "");
}
DataRecorder::~DataRecorder()
......
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