mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-17 02:52:12 +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) {
|
||||
// This object is unknown!
|
||||
qDebug() << "Object Unknown:" << uavObjectName << uavObjectID;
|
||||
swui.addLine(uavObjectName, "Error", false);
|
||||
swui.addLine(uavObjectName, "Error (object Unknown)", false);
|
||||
|
||||
} else {
|
||||
// - Update each field
|
||||
@ -190,10 +190,10 @@ void UAVSettingsImportExportPlugin::importUAVSettings()
|
||||
}
|
||||
obj->updated();
|
||||
if (error) {
|
||||
swui.addLine(uavObjectName, "Error", false);
|
||||
swui.addLine(uavObjectName, "Warning (Object field unknown)", true);
|
||||
} else if (uavObjectID != obj->getObjID()) {
|
||||
qDebug() << "Mismatch for Object " << uavObjectName << uavObjectID << " - " << obj->getObjID();
|
||||
swui.addLine(uavObjectName, "Warning", true);
|
||||
swui.addLine(uavObjectName, "Warning (ObjectID mismatch)", true);
|
||||
} else
|
||||
swui.addLine(uavObjectName, "OK", true);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user