Fix 'Save data' in RealtimeWindow

A previous commit stopped disk updating from working, i.e. saving
workout data to a .csv file. This patch fixes that.

Fix supplied by Greg Lonnon, Fixes #254.
This commit is contained in:
Mark Liversedge
2011-02-07 19:48:31 +00:00
parent 3ff839c4ff
commit 8913b37346

View File

@@ -389,6 +389,11 @@ void RealtimeWindow::Start() // when start button is pressed
if (status & RT_WORKOUT) {
load_timer->start(LOADRATE); // start recording
}
if (recordSelector->isChecked()) {
status |= RT_RECORDING;
}
if (status & RT_RECORDING) {
QDateTime now = QDateTime::currentDateTime();