mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 21:56:43 +08:00
refs #225, added validation message for remarks > 100chars
This commit is contained in:
@@ -105,7 +105,13 @@ namespace BlackGui
|
||||
flightPlan.setRoute(v);
|
||||
|
||||
v = ui->pte_Remarks->toPlainText().trimmed();
|
||||
flightPlan.setRemarks(v);
|
||||
if (v.length() > 100)
|
||||
{
|
||||
QString m = QString("Length exceeded (100 chars max.) %1").arg(this->ui->lbl_Remarks->text());
|
||||
messages.push_back(CStatusMessage::getValidationError(m));
|
||||
}
|
||||
else
|
||||
flightPlan.setRemarks(v);
|
||||
|
||||
v = ui->le_EstimatedTimeEnroute->text();
|
||||
if (v.isEmpty() || v == defaultTime())
|
||||
@@ -176,7 +182,6 @@ namespace BlackGui
|
||||
else
|
||||
flightPlan.setCruiseTrueAirspeed(cruiseTAS);
|
||||
|
||||
|
||||
v = this->ui->le_OriginAirport->text();
|
||||
if (v.isEmpty() || v.endsWith(defaultIcao(), Qt::CaseInsensitive))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user