Fix CMS50i single session crash

This commit is contained in:
Mark Watkins 2014-09-18 11:36:17 +10:00
parent 54a46c6aca
commit f63905be52

View File

@ -301,7 +301,10 @@ void OximeterImport::doImport()
oximodule->Open("import");
if (oximodule->commandDriven()) {
int chosen=chosen_sessions.takeFirst();
int chosen = 0;
if (chosen_sessions.size() > 0) {
chosen = chosen_sessions.takeFirst();
}
oximodule->getSessionData(chosen);
}