mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
refs #577 improved airline filter (wildcard)
This commit is contained in:
@@ -43,8 +43,8 @@ namespace BlackGui
|
||||
{
|
||||
return std::unique_ptr<CAirlineIcaoFilter>(
|
||||
new CAirlineIcaoFilter(
|
||||
this->ui->le_Designator->text(),
|
||||
this->ui->le_Name->text(),
|
||||
this->ui->le_Designator->text().trimmed(),
|
||||
this->ui->le_Name->text().trimmed(),
|
||||
this->ui->country_Selector->isSet() ? this->ui->country_Selector->getCountry().getIsoCode() : "",
|
||||
this->ui->cb_RealAirline->isChecked(),
|
||||
this->ui->cb_VirtualAirline->isChecked()
|
||||
|
||||
@@ -31,8 +31,7 @@ namespace BlackGui
|
||||
{
|
||||
if (!m_vDesignator.isEmpty())
|
||||
{
|
||||
if (!icao.matchesVDesignator(m_vDesignator)) { continue; }
|
||||
end = true; // there should me only one designator
|
||||
if (!this->stringMatchesFilterExpression(icao.getVDesignator(), m_vDesignator)) { continue; }
|
||||
}
|
||||
|
||||
if (!this->m_name.isEmpty())
|
||||
|
||||
Reference in New Issue
Block a user