Ref T472, initial version of category matcher

This commit is contained in:
Klaus Basan
2019-03-03 17:51:19 +01:00
committed by Mat Sutcliffe
parent 5846860382
commit 503bbf3a26
4 changed files with 106 additions and 1 deletions

View File

@@ -41,7 +41,14 @@ namespace BlackCore
}
CAircraftMatcher::CAircraftMatcher(const CAircraftMatcherSetup &setup, QObject *parent) : QObject(parent), m_setup(setup)
{ }
{
if (sApp && !sApp->isShuttingDown())
{
sApp->getWebDataServices()->synchronizeDbCaches(CEntityFlags::AircraftCategoryEntity);
const CAircraftCategoryList categories = sApp->getWebDataServices()->getAircraftCategories();
m_categoryMatcher.setCategories(categories);
}
}
CAircraftMatcher::CAircraftMatcher(QObject *parent) : CAircraftMatcher(CAircraftMatcherSetup(), parent)
{ }