Skip to content

Commit

Permalink
MythMusic: Fix segfault on visualization settings page if a widget is…
Browse files Browse the repository at this point in the history
… missing
  • Loading branch information
paul-h authored and Paul Harrison committed Mar 24, 2013
1 parent 7472489 commit 9ec05b1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mythplugins/mythmusic/mythmusic/visualizationsettings.cpp
Expand Up @@ -37,6 +37,12 @@ bool VisualizationSettings::Create()
UIUtilE::Assign(this, m_saveButton, "save", &err);
UIUtilE::Assign(this, m_cancelButton, "cancel", &err);

if (err)
{
LOG(VB_GENERAL, LOG_ERR, "Cannot load screen 'visualizationsettings'");
return false;
}

int changeOnSongChange = gCoreContext->GetNumSetting("VisualCycleOnSongChange", 0);
if (changeOnSongChange == 1)
m_changeOnSongChange->SetCheckState(MythUIStateType::Full);
Expand Down

0 comments on commit 9ec05b1

Please sign in to comment.