Skip to content

Commit

Permalink
When changing products, the time managed by the Timeline Manager shou…
Browse files Browse the repository at this point in the history
…ld be used
  • Loading branch information
dpaulat committed Sep 21, 2023
1 parent aa0dab0 commit d7a3a3c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scwx-qt/source/scwx/qt/main/main_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ class MainWindowImpl : public QObject
std::vector<map::MapWidget*> maps_;
std::vector<float> elevationCuts_;

std::chrono::system_clock::time_point volumeTime_ {};

bool elevationButtonsChanged_;
bool resizeElevationButtons_;

Expand Down Expand Up @@ -820,6 +822,7 @@ void MainWindowImpl::ConnectAnimationSignals()
{
for (auto map : maps_)
{
volumeTime_ = dateTime;
map->SelectTime(dateTime);
}
});
Expand Down Expand Up @@ -1009,8 +1012,7 @@ void MainWindowImpl::SelectRadarProduct(map::MapWidget* mapWidget,
UpdateRadarProductSettings();
}

mapWidget->SelectRadarProduct(
group, productName, productCode, mapWidget->GetSelectedTime());
mapWidget->SelectRadarProduct(group, productName, productCode, volumeTime_);
}

void MainWindowImpl::SetActiveMap(map::MapWidget* mapWidget)
Expand Down

0 comments on commit d7a3a3c

Please sign in to comment.