Fix ResMed series strings for S10

This commit is contained in:
Mark Watkins 2014-08-26 18:59:35 +10:00
parent c6a6aace5a
commit 514d88c68a

View File

@ -1018,8 +1018,15 @@ MachineInfo ResmedLoader::PeekInfo(const QString & path)
info.serial = value;
} else if (key == "PNA") { // Product Name
value.replace("S9", "");
value.replace("_"," ");
if (value.contains("S9")) {
value.replace("S9", "");
info.series = value;
} else if (value.contains("AirSense 10")) {
value.replace("AirSense 10", "");
info.series = "AirSense 10";
}
value.replace("(","");
value.replace(")","");
if (value.contains("Adapt", Qt::CaseInsensitive)) {
@ -1563,10 +1570,17 @@ int ResmedLoader::Open(QString path)
continue;
} else if (key == "PNA") { // Product Name
value.replace("S9", "");
value.replace("_"," ");
if (value.contains("S9")) {
value.replace("S9", "");
info.series = "S9";
} else if (value.contains("AirSense 10")) {
value.replace("AirSense 10", "");
info.series = "AirSense 10";
}
value.replace("(","");
value.replace(")","");
if (value.contains("Adapt", Qt::CaseInsensitive)) {
if (!value.contains("VPAP")) {
value.replace("Adapt", QObject::tr("VPAP Adapt"));