fix: Use correct EntityFlag for check

This commit is contained in:
Lars Toenning
2024-03-11 20:30:27 +01:00
parent 254ab22c93
commit e03a811585

View File

@@ -148,7 +148,7 @@ namespace BlackGui::Components
void CDbCountrySelectorComponent::onCountriesRead(CEntityFlags::Entity entity, CEntityFlags::ReadState readState, int count)
{
if (!sGui || sGui->isShuttingDown() || !sGui->hasWebDataServices()) { return; }
if (entity.testFlag(CEntityFlags::DistributorEntity) && CEntityFlags::isFinishedReadState(readState))
if (entity.testFlag(CEntityFlags::CountryEntity) && CEntityFlags::isFinishedReadState(readState))
{
if (count > 0)
{