From 48b2ebb0d6ef475e72d52b94b05fee72686d1fc8 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Sat, 19 May 2012 17:03:49 +1000 Subject: [PATCH] Revert "Patricia Shanahan, ZEO Module: Was dropping integer field when MorningFeel empty." This reverts commit c3e642e7497d2fb2e1c5064ee6c146628f6a6e4f. --- SleepLib/loader_plugins/zeo_loader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/SleepLib/loader_plugins/zeo_loader.cpp b/SleepLib/loader_plugins/zeo_loader.cpp index ef9a6c23..392a38d1 100644 --- a/SleepLib/loader_plugins/zeo_loader.cpp +++ b/SleepLib/loader_plugins/zeo_loader.cpp @@ -238,6 +238,7 @@ int ZEOLoader::OpenFile(QString filename) } MorningFeel=linecomp[idxMorningFeel].toInt(&ok); //if (!ok) dodgy=true; + if (!ok) MorningFeel=0; FirmwareVersion=linecomp[idxFirmwareVersion];