mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-11 06:25:33 +08:00
refs #526, finetuning in 2 components
This commit is contained in:
@@ -75,8 +75,12 @@ namespace BlackGui
|
||||
|
||||
CAircraftIcaoCode CDbAircraftIcaoSelectorComponent::getAircraftIcao() const
|
||||
{
|
||||
int key = CDatastoreUtility::extractIntegerKey(this->ui->le_Aircraft->text());
|
||||
if (key < 0) { return CAircraftIcaoCode(); }
|
||||
QString text(this->ui->le_Aircraft->text().trimmed().toUpper());
|
||||
int key = CDatastoreUtility::extractIntegerKey(text);
|
||||
if (key < 0)
|
||||
{
|
||||
return CAircraftIcaoCode(text);
|
||||
}
|
||||
CAircraftIcaoCode icao(getAircraftIcaoCodeForDbKey(key));
|
||||
return icao;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user