Patricia Shanahan path for ZEO Module: Was dropping empty integer field.

This commit is contained in:
Mark Watkins 2012-05-19 16:36:17 +10:00
parent f031081521
commit 78e306cdaa

View File

@ -237,7 +237,9 @@ int ZEOLoader::OpenFile(QString filename)
if (!SetAlarmTime.isValid()) dodgy=true; if (!SetAlarmTime.isValid()) dodgy=true;
} }
MorningFeel=linecomp[idxMorningFeel].toInt(&ok); MorningFeel=linecomp[idxMorningFeel].toInt(&ok);
if (!ok) dodgy=true; //if (!ok) dodgy=true;
if (!ok) MorningFeel=0;
FirmwareVersion=linecomp[idxFirmwareVersion]; FirmwareVersion=linecomp[idxFirmwareVersion];
if (idxMyZEOVersion>=0) MyZeoVersion=linecomp[idxMyZEOVersion]; if (idxMyZEOVersion>=0) MyZeoVersion=linecomp[idxMyZEOVersion];