mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
OP-369 Last improvements to import option.
This commit is contained in:
parent
a7dccb6648
commit
dbba0afe0d
@ -158,7 +158,7 @@ void UAVSettingsImportExportPlugin::importUAVSettings()
|
|||||||
if (obj == NULL) {
|
if (obj == NULL) {
|
||||||
// This object is unknown!
|
// This object is unknown!
|
||||||
qDebug() << "Object Unknown:" << uavObjectName << uavObjectID;
|
qDebug() << "Object Unknown:" << uavObjectName << uavObjectID;
|
||||||
swui.addLine(uavObjectName, "Error", false);
|
swui.addLine(uavObjectName, "Error (object Unknown)", false);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// - Update each field
|
// - Update each field
|
||||||
@ -190,10 +190,10 @@ void UAVSettingsImportExportPlugin::importUAVSettings()
|
|||||||
}
|
}
|
||||||
obj->updated();
|
obj->updated();
|
||||||
if (error) {
|
if (error) {
|
||||||
swui.addLine(uavObjectName, "Error", false);
|
swui.addLine(uavObjectName, "Warning (Object field unknown)", true);
|
||||||
} else if (uavObjectID != obj->getObjID()) {
|
} else if (uavObjectID != obj->getObjID()) {
|
||||||
qDebug() << "Mismatch for Object " << uavObjectName << uavObjectID << " - " << obj->getObjID();
|
qDebug() << "Mismatch for Object " << uavObjectName << uavObjectID << " - " << obj->getObjID();
|
||||||
swui.addLine(uavObjectName, "Warning", true);
|
swui.addLine(uavObjectName, "Warning (ObjectID mismatch)", true);
|
||||||
} else
|
} else
|
||||||
swui.addLine(uavObjectName, "OK", true);
|
swui.addLine(uavObjectName, "OK", true);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user