Commit cb91b92d authored by Thiago Santini's avatar Thiago Santini

Fixes possible race condition when finishing recording

parent 9a49047c
......@@ -311,11 +311,11 @@ void CameraWidget::startRecording()
void CameraWidget::stopRecording()
{
QMetaObject::invokeMethod(recorder, "stopRecording");
disconnect(imageProcessor, SIGNAL(newData(EyeData)),
recorder, SIGNAL(newData(EyeData)) );
disconnect(imageProcessor, SIGNAL(newData(FieldData)),
recorder, SIGNAL(newData(FieldData)) );
disconnect(imageProcessor, SIGNAL(newData(EyeData)),
recorder, SIGNAL(newData(EyeData)) );
disconnect(imageProcessor, SIGNAL(newData(FieldData)),
recorder, SIGNAL(newData(FieldData)) );
QMetaObject::invokeMethod(recorder, "stopRecording", Qt::QueuedConnection);
ui->menubar->setEnabled(true);
}
......
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