diff options
author | Jonathan Marshall <jmarshall@never.you.mind> | 2012-11-16 20:54:22 +1300 |
---|---|---|
committer | Jonathan Marshall <jmarshall@never.you.mind> | 2012-11-16 21:05:13 +1300 |
commit | c0e9cc0b31dbe12b2275c045a25c88cd52046e25 (patch) | |
tree | 844bc1bbba947179b8cf728a513a6bbb44a1af3c | |
parent | 18e10be1146e76bfe04218e4cd62b71726409310 (diff) |
make sure we setup the visualisation preset list prior to init'ing the window. part of #13556
-rw-r--r-- | xbmc/music/dialogs/GUIDialogVisualisationPresetList.cpp | 18 | ||||
-rw-r--r-- | xbmc/music/dialogs/GUIDialogVisualisationPresetList.h | 1 |
2 files changed, 9 insertions, 10 deletions
diff --git a/xbmc/music/dialogs/GUIDialogVisualisationPresetList.cpp b/xbmc/music/dialogs/GUIDialogVisualisationPresetList.cpp index 0c2c40cb5b..8320acb11f 100644 --- a/xbmc/music/dialogs/GUIDialogVisualisationPresetList.cpp +++ b/xbmc/music/dialogs/GUIDialogVisualisationPresetList.cpp @@ -67,16 +67,6 @@ bool CGUIDialogVisualisationPresetList::OnMessage(CGUIMessage &message) } } break; - case GUI_MSG_WINDOW_INIT: - { - CGUIDialog::OnMessage(message); - - CGUIMessage msg(GUI_MSG_GET_VISUALISATION, 0, 0); - g_windowManager.SendMessage(msg); - SetVisualisation((CVisualisation*)msg.GetPointer()); - return true; - } - break; case GUI_MSG_WINDOW_DEINIT: case GUI_MSG_VISUALISATION_UNLOADING: { @@ -122,6 +112,14 @@ void CGUIDialogVisualisationPresetList::FrameMove() CGUIDialog::FrameMove(); } +void CGUIDialogVisualisationPresetList::OnInitWindow() +{ + CGUIMessage msg(GUI_MSG_GET_VISUALISATION, 0, 0); + g_windowManager.SendMessage(msg); + SetVisualisation((CVisualisation*)msg.GetPointer()); + CGUIDialog::OnInitWindow(); +} + void CGUIDialogVisualisationPresetList::Update() { m_vecPresets->Clear(); diff --git a/xbmc/music/dialogs/GUIDialogVisualisationPresetList.h b/xbmc/music/dialogs/GUIDialogVisualisationPresetList.h index 04828ce951..99ac7381c2 100644 --- a/xbmc/music/dialogs/GUIDialogVisualisationPresetList.h +++ b/xbmc/music/dialogs/GUIDialogVisualisationPresetList.h @@ -38,6 +38,7 @@ public: virtual void FrameMove(); protected: + virtual void OnInitWindow(); void SetVisualisation(ADDON::CVisualisation *addon); void Update(); ADDON::CVisualisation* m_viz; //TODO get rid |