Permalink
Browse files

use an actual music window rather than the active window. fixes crash…

…es in #13766
  • Loading branch information...
1 parent 78ad73c commit 344e8ded7673d11508940a98bfcd438b384f1c9a Jonathan Marshall committed Dec 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/music/dialogs/GUIDialogSongInfo.cpp
@@ -103,7 +103,7 @@ bool CGUIDialogSongInfo::OnMessage(CGUIMessage& message)
}
else if (iControl == CONTROL_ALBUMINFO)
{
- CGUIWindowMusicBase *window = (CGUIWindowMusicBase *)g_windowManager.GetWindow(g_windowManager.GetActiveWindow());
+ CGUIWindowMusicBase *window = (CGUIWindowMusicBase *)g_windowManager.GetWindow(WINDOW_MUSIC_NAV);
if (window)
{
CFileItem item(*m_song);

4 comments on commit 344e8de

@ronie
ronie commented on 344e8de Dec 18, 2012

this will break switching from song info to album info in WINDOW_MUSIC_PLAYLIST

@ronie
ronie commented on 344e8de Dec 18, 2012

and musicfiles / musicplaylisteditor

@jmarshallnz
Owner

No it won't.

@ronie
ronie commented on 344e8de Dec 19, 2012

ok, must be the other commit then ;-)

Please sign in to comment.