From e03a81158501062329863c298c9c4ad2699ba323 Mon Sep 17 00:00:00 2001 From: Lars Toenning Date: Mon, 11 Mar 2024 20:30:27 +0100 Subject: [PATCH] fix: Use correct EntityFlag for check --- src/blackgui/components/dbcountryselectorcomponent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blackgui/components/dbcountryselectorcomponent.cpp b/src/blackgui/components/dbcountryselectorcomponent.cpp index 779967f0f..dd049bf09 100644 --- a/src/blackgui/components/dbcountryselectorcomponent.cpp +++ b/src/blackgui/components/dbcountryselectorcomponent.cpp @@ -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) {