Skip to content

Commit

Permalink
fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
AzGilrock committed May 14, 2024
1 parent 97cdac6 commit ca8036f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xLights/effects/MovingHeadPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,7 @@ void MovingHeadPanel::ValidateWindow()
{
// Lets fix moving head fixture assignments
auto models = GetActiveModels();
if (models.empty()) return;
bool single_model = models.size() == 1;

// if single model make sure the effect setting is on correct head...if not move it
Expand Down Expand Up @@ -950,11 +951,9 @@ void MovingHeadPanel::ValidateWindow()
UpdateStatusPanel();

// Set current timing track in Dimmer window
if (model == nullptr) return;
const ModelManager& mgr = model->GetModelManager();
xLightsFrame* xlights = mgr.GetXLightsFrame();
if (xlights == nullptr) return;
SequenceElements& se = xlights->GetSequenceElements();
Element* active_timing = xlights->GetMainSequencer()->PanelEffectGrid->GetActiveTimingElement();
if (active_timing == nullptr) return;
m_movingHeadDimmerPanel->SetEffectTimeRange(startTimeMs_, endTimeMs_);
Expand Down

0 comments on commit ca8036f

Please sign in to comment.