refs #533, fixes "CContextSimulator::ps_addRemoteAircraft is never called"

* reordered use of fireDelayedReadyForModelMatching
* better calls / params depending on received packet(FSInn / Icao code)
* fixed search in DB data
* works now with and without DB data present
This commit is contained in:
Klaus Basan
2015-12-02 00:50:00 +01:00
parent 39796f2f06
commit a863f99c9d
6 changed files with 178 additions and 104 deletions

View File

@@ -48,7 +48,7 @@ namespace BlackMisc
CAircraftModel CAircraftModelList::findFirstByModelString(const QString &modelString, Qt::CaseSensitivity sensitivity) const
{
return this->findFirstBy([ = ](const CAircraftModel & model)
return this->findFirstByOrDefault([ = ](const CAircraftModel & model)
{
return model.matchesModelString(modelString, sensitivity);
});