From 1289380bac670834887f9be5b8dd3ceefdd1053a Mon Sep 17 00:00:00 2001 From: Michael Morgan <84428382+aa5sh@users.noreply.github.com> Date: Tue, 18 Mar 2025 16:30:43 -0500 Subject: [PATCH] Update AwardsDialog.cpp I noticed the when looking at code for the email earlier that the DXCC counts were still including Deleted Entities. Mine was showing 323 instead of 320 confirmed. I made an adjustment to correct but not sure if it is the ideal way. --- ui/AwardsDialog.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ui/AwardsDialog.cpp b/ui/AwardsDialog.cpp index c662a38f..3ca051ef 100644 --- a/ui/AwardsDialog.cpp +++ b/ui/AwardsDialog.cpp @@ -144,8 +144,15 @@ void AwardsDialog::refreshTable(int) " SELECT * " " FROM contacts )"; + if ( awardSelected == "dxcc" ) { + sourceContactsTable = " source_contacts AS (" + " SELECT * " + " FROM contacts c " + " inner join " + " dxcc_entities d on " + " c.dxcc =d.id )"; setEntityInputEnabled(true); setNotWorkedEnabled(true); const QString &entitySelected = getSelectedEntity();