From 78e306cdaa012d7fb9af57551037524ee19baf0e Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Sat, 19 May 2012 16:36:17 +1000 Subject: [PATCH] Patricia Shanahan path for ZEO Module: Was dropping empty integer field. --- SleepLib/loader_plugins/zeo_loader.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SleepLib/loader_plugins/zeo_loader.cpp b/SleepLib/loader_plugins/zeo_loader.cpp index 8571564b..392a38d1 100644 --- a/SleepLib/loader_plugins/zeo_loader.cpp +++ b/SleepLib/loader_plugins/zeo_loader.cpp @@ -237,7 +237,9 @@ int ZEOLoader::OpenFile(QString filename) if (!SetAlarmTime.isValid()) dodgy=true; } MorningFeel=linecomp[idxMorningFeel].toInt(&ok); - if (!ok) dodgy=true; + //if (!ok) dodgy=true; + + if (!ok) MorningFeel=0; FirmwareVersion=linecomp[idxFirmwareVersion]; if (idxMyZEOVersion>=0) MyZeoVersion=linecomp[idxMyZEOVersion];