mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 19:10:06 +00:00
Don't connect signals/slots with null pointers
This commit is contained in:
parent
5039fea3b9
commit
09064c0be0
1 changed files with 7 additions and 4 deletions
|
|
@ -88,10 +88,13 @@ void OverlayLayer::Initialize()
|
|||
p->texture_ = p->font_->GenerateTexture(gl);
|
||||
}
|
||||
|
||||
connect(context()->radarProductView_.get(),
|
||||
&view::RadarProductView::SweepComputed,
|
||||
this,
|
||||
&OverlayLayer::UpdateSweepTimeNextFrame);
|
||||
if (context()->radarProductView_ != nullptr)
|
||||
{
|
||||
connect(context()->radarProductView_.get(),
|
||||
&view::RadarProductView::SweepComputed,
|
||||
this,
|
||||
&OverlayLayer::UpdateSweepTimeNextFrame);
|
||||
}
|
||||
}
|
||||
|
||||
void OverlayLayer::Render(const QMapbox::CustomLayerRenderParameters& params)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue