refs #577 improved airline filter (wildcard)

This commit is contained in:
Klaus Basan
2016-01-30 02:30:19 +01:00
parent cb5e48fdd8
commit c715e93c58
2 changed files with 3 additions and 4 deletions

View File

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

View File

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