mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
refs #576, no airline validation with color liveries and no exclusion of special designators
This commit is contained in:
@@ -79,16 +79,26 @@ namespace BlackGui
|
||||
this->ui->color_Fuselage->setColor(livery.getColorFuselage());
|
||||
this->ui->color_Tail->setColor(livery.getColorTail());
|
||||
|
||||
this->ui->editor_AirlineIcao->setValue(livery.getAirlineIcaoCode());
|
||||
if (livery.isColorLivery())
|
||||
{
|
||||
this->ui->editor_AirlineIcao->clear();
|
||||
}
|
||||
else
|
||||
{
|
||||
this->ui->editor_AirlineIcao->setValue(livery.getAirlineIcaoCode());
|
||||
}
|
||||
}
|
||||
|
||||
CStatusMessageList CLiveryForm::validate(bool withNestedForms) const
|
||||
{
|
||||
CLivery livery(getValue());
|
||||
CStatusMessageList msgs(livery.validate());
|
||||
if (withNestedForms && (livery.hasValidDbKey() || !livery.getAirlineIcaoCodeDesignator().isEmpty()))
|
||||
if (withNestedForms)
|
||||
{
|
||||
msgs.push_back(this->ui->editor_AirlineIcao->validate());
|
||||
if (!livery.isColorLivery())
|
||||
{
|
||||
msgs.push_back(this->ui->editor_AirlineIcao->validate());
|
||||
}
|
||||
}
|
||||
if (this->isReadOnly())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user