Skip to content

Commit

Permalink
Remove lost AIS targets from AIS Target Dialog when removed from screen
Browse files Browse the repository at this point in the history
  • Loading branch information
bdbcat committed May 7, 2024
1 parent 640a96b commit 8a866d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gui/src/AISTargetListDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1106,6 +1106,10 @@ void AISTargetListDialog::UpdateAISTargetList(void) {
else if (!pAISTarget->b_positionOnceValid)
b_add = true;

// Do not show any "lost" targets in the list.
if (pAISTarget->b_lost)
b_add = false;

if (b_add) {
m_pMMSI_array->Add(pAISTarget->MMSI);
}
Expand Down

0 comments on commit 8a866d2

Please sign in to comment.