Skip to content

Commit

Permalink
CGUIDialogMusicOSD: handle ACTION_SHOW_OSD (fixes xbmc#13475)
Browse files Browse the repository at this point in the history
  • Loading branch information
Montellese committed Oct 31, 2012
1 parent 786c72b commit de2873b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions xbmc/music/dialogs/GUIDialogMusicOSD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,21 @@ bool CGUIDialogMusicOSD::OnMessage(CGUIMessage &message)
return CGUIDialog::OnMessage(message);
}

bool CGUIDialogMusicOSD::OnAction(const CAction &action)
{
switch (action.GetID())
{
case ACTION_SHOW_OSD:
Close();
return true;

default:
break;
}

return CGUIDialog::OnAction(action);
}

void CGUIDialogMusicOSD::FrameMove()
{
if (m_autoClosing)
Expand Down
1 change: 1 addition & 0 deletions xbmc/music/dialogs/GUIDialogMusicOSD.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ class CGUIDialogMusicOSD :
CGUIDialogMusicOSD(void);
virtual ~CGUIDialogMusicOSD(void);
virtual bool OnMessage(CGUIMessage &message);
virtual bool OnAction(const CAction &action);
virtual void FrameMove();
};

0 comments on commit de2873b

Please sign in to comment.