mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-13 07:35:41 +08:00
refs #526, forms
* fixed read only * in read only mode no warnings (then we just do mapping and warnings do not help)
This commit is contained in:
@@ -72,6 +72,11 @@ namespace BlackGui
|
||||
{
|
||||
msgs.push_back(this->ui->editor_AirlineIcao->validate());
|
||||
}
|
||||
if (this->isReadOnly())
|
||||
{
|
||||
// in readonly I cannot change the data anyway, so skip warnings
|
||||
msgs.removeWarningsAndBelow();
|
||||
}
|
||||
this->ui->val_Indicator->setState(msgs);
|
||||
return msgs;
|
||||
}
|
||||
@@ -91,6 +96,8 @@ namespace BlackGui
|
||||
this->m_readOnly = readOnly;
|
||||
this->ui->le_Code->setReadOnly(readOnly);
|
||||
this->ui->le_Description->setReadOnly(readOnly);
|
||||
this->ui->color_Fuselage->setReadOnly(readOnly);
|
||||
this->ui->color_Tail->setReadOnly(readOnly);
|
||||
}
|
||||
|
||||
void CLiveryForm::setMappingMode()
|
||||
|
||||
Reference in New Issue
Block a user