mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 15:00:04 +00:00
Display an informational dialog when OpenGL cannot properly be initialized
This commit is contained in:
parent
a6f8547455
commit
8e9db6a2fe
3 changed files with 69 additions and 22 deletions
|
|
@ -2011,10 +2011,14 @@ void MapWidgetImpl::RadarProductViewConnect()
|
|||
std::shared_ptr<config::RadarSite> radarSite =
|
||||
radarProductManager_->radar_site();
|
||||
|
||||
RadarRangeLayer::Update(
|
||||
map_,
|
||||
radarProductView->range(),
|
||||
{radarSite->latitude(), radarSite->longitude()});
|
||||
if (map_ != nullptr)
|
||||
{
|
||||
RadarRangeLayer::Update(
|
||||
map_,
|
||||
radarProductView->range(),
|
||||
{radarSite->latitude(), radarSite->longitude()});
|
||||
}
|
||||
|
||||
widget_->update();
|
||||
Q_EMIT widget_->RadarSweepUpdated();
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue