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

@@ -67,6 +67,11 @@ namespace BlackGui
// optional distributor
msgs = distributor.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;
}