Alert dialog "Go" button is not disabled when selecting an alert without coordinates

This commit is contained in:
Dan Paulat 2022-11-08 22:45:47 -06:00
parent 963cbccdd9
commit 7ef3cb8347

View file

@ -152,6 +152,10 @@ void AlertDialogImpl::UpdateAlertInfo()
centroid_ =
common::GetCentroid(alertSegment->codedLocation_->coordinates());
}
else
{
centroid_ = common::Coordinate {};
}
goButton_->setEnabled(centroid_ != common::Coordinate {});
}