mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
Ref T472, initial version of category matcher
This commit is contained in:
committed by
Mat Sutcliffe
parent
5846860382
commit
503bbf3a26
@@ -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)
|
||||
{ }
|
||||
|
||||
Reference in New Issue
Block a user