Assign WAE entities to the correct DXCC when "Include extra WAE entities" is not selected.

This commit is contained in:
Uwe Risse
2023-12-08 18:19:42 +01:00
parent 05931313b3
commit 6e9dc42881
2 changed files with 13 additions and 2 deletions
+2 -2
View File
@@ -446,8 +446,8 @@ auto AD1CCty::lookup (QString const& call) const -> Record
if (p != m_->prefixes_.end ())
{
impl::entity_by_id::iterator e = m_->lookup_entity (call, *p);
if ((m_->configuration_->include_WAE_entities () || !e->WAE_only_)
&& (!p->exact_ || call.size () == search_prefix.size ()))
// always lookup WAE entities, we substitute them later in displaytext.cpp if "Include extra WAE entites" is not selected
if (!p->exact_ || call.size () == search_prefix.size ())
{
return m_->fixup (*p, *e);
}