mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
refs #576, improved filters
* initially clear filters * fixed handling of simulator flags * rename field * changed order of * handling
This commit is contained in:
@@ -95,7 +95,7 @@ namespace BlackGui
|
||||
this->m_airlineIcao.isEmpty() && this->m_airlineName.isEmpty() &&
|
||||
this->m_liveryCode.isEmpty() &&
|
||||
!this->m_distributor.hasValidDbKey() &&
|
||||
this->m_simulatorInfo.isNoSimulator()
|
||||
(this->m_simulatorInfo.isNoSimulator() || this->m_simulatorInfo.isAllSimulators())
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -38,17 +38,18 @@ namespace BlackGui
|
||||
return v.contains(filterNoWildcard, cs);
|
||||
}
|
||||
|
||||
// ends with
|
||||
if (f.endsWith('*'))
|
||||
{
|
||||
return v.startsWith(filterNoWildcard, cs);
|
||||
}
|
||||
|
||||
// starting with
|
||||
if (f.startsWith('*'))
|
||||
{
|
||||
return v.endsWith(filterNoWildcard, cs);
|
||||
}
|
||||
|
||||
if (f.endsWith('*'))
|
||||
{
|
||||
return v.startsWith(filterNoWildcard, cs);
|
||||
}
|
||||
|
||||
// should never happen
|
||||
Q_ASSERT(false);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user