Add current radar site to NexradFileRequest in the event there is no radar site in the Archive II file

This commit is contained in:
Dan Paulat 2024-01-27 22:30:02 -06:00
parent 1259cba811
commit 9071c4751e
6 changed files with 85 additions and 65 deletions

View file

@ -430,8 +430,12 @@ void MainWindow::on_actionOpenNexrad_triggered()
{
logger_->info("Selected: {}", file.toStdString());
auto radarSite = p->activeMap_->GetRadarSite();
std::string currentRadarSite =
(radarSite != nullptr) ? radarSite->id() : std::string {};
std::shared_ptr<request::NexradFileRequest> request =
std::make_shared<request::NexradFileRequest>();
std::make_shared<request::NexradFileRequest>(currentRadarSite);
connect( //
request.get(),