From 8913b3734661b372a461e356c839627aec29cc09 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Mon, 7 Feb 2011 19:48:31 +0000 Subject: [PATCH] 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. --- src/RealtimeWindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/RealtimeWindow.cpp b/src/RealtimeWindow.cpp index f7246625b..7cb137c94 100644 --- a/src/RealtimeWindow.cpp +++ b/src/RealtimeWindow.cpp @@ -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();