mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-19 03:45:30 +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:
@@ -70,6 +70,12 @@ namespace BlackGui
|
||||
{
|
||||
CAirlineIcaoCode code(getValue());
|
||||
CStatusMessageList msgs(code.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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user