Don't connect signals/slots with null pointers

This commit is contained in:
Dan Paulat 2022-05-28 02:31:49 -05:00
parent 5039fea3b9
commit 09064c0be0

View file

@ -88,11 +88,14 @@ void OverlayLayer::Initialize()
p->texture_ = p->font_->GenerateTexture(gl);
}
if (context()->radarProductView_ != nullptr)
{
connect(context()->radarProductView_.get(),
&view::RadarProductView::SweepComputed,
this,
&OverlayLayer::UpdateSweepTimeNextFrame);
}
}
void OverlayLayer::Render(const QMapbox::CustomLayerRenderParameters& params)
{