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();