mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 09:15:34 +08:00
Ref T72, lenient search for airline ICAO
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user