Skip to content

Commit

Permalink
Don't allow hover over sweep time if there is no data to display, pre…
Browse files Browse the repository at this point in the history
…venting crash
  • Loading branch information
dpaulat committed Jan 10, 2024
1 parent c42d60a commit 447f3ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scwx-qt/source/scwx/qt/map/overlay_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ void OverlayLayer::Render(
ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize |
ImGuiWindowFlags_AlwaysAutoResize);

if (ImGui::IsWindowHovered())
if (radarProductView != nullptr && ImGui::IsWindowHovered())
{
// Show a detailed product description when the sweep time is hovered
p->sweepTimePicked_ = true;
Expand Down

0 comments on commit 447f3ee

Please sign in to comment.