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:
Klaus Basan
2016-01-02 20:52:26 +01:00
parent 0a6ed4e874
commit 5aa1f3bc94
8 changed files with 43 additions and 16 deletions

View File

@@ -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()