Ref T72, lenient search for airline ICAO

This commit is contained in:
Klaus Basan
2017-05-06 01:22:17 +02:00
parent 183d3f58e7
commit cdfa2530b6
3 changed files with 12 additions and 13 deletions

View File

@@ -2,16 +2,8 @@
<ui version="4.0">
<class>CAirlineIcaoFilterBar</class>
<widget class="QFrame" name="CAirlineIcaoFilterBar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>492</width>
<height>22</height>
</rect>
</property>
<property name="windowTitle">
<string>Frame</string>
<string>Airline ICAO filter</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>

View File

@@ -33,7 +33,15 @@ namespace BlackGui
{
if (!m_vDesignator.isEmpty())
{
if (!this->stringMatchesFilterExpression(icao.getVDesignator(), m_vDesignator)) { continue; }
// based on T72, also find VLHA based on LHA
if (m_vDesignator.length() == 4)
{
if (!this->stringMatchesFilterExpression(icao.getVDesignator(), m_vDesignator)) { continue; }
}
else
{
if (!this->stringMatchesFilterExpression(icao.getDesignator(), m_vDesignator)) { continue; }
}
}
if (!this->m_name.isEmpty())

View File

@@ -37,10 +37,9 @@ namespace BlackGui
QString m_vDesignator;
QString m_name;
QString m_countryIso;
bool m_real;
bool m_va;
bool m_real = false;
bool m_va = false;
};
} // namespace
} // namespace