Skip to content

Commit

Permalink
changed: close context menu when hosting media window closes
Browse files Browse the repository at this point in the history
  • Loading branch information
spiff committed Feb 6, 2012
1 parent ab522c3 commit 04ff814
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xbmc/windows/GUIMediaWindow.cpp
Expand Up @@ -217,6 +217,10 @@ bool CGUIMediaWindow::OnMessage(CGUIMessage& message)
m_iSelectedItem = m_viewControl.GetSelectedItem();
m_iLastControl = GetFocusedControlID();
CGUIWindow::OnMessage(message);
CGUIDialogContextMenu* pDlg = (CGUIDialogContextMenu*)g_windowManager.GetWindow(WINDOW_DIALOG_CONTEXT_MENU);
if (pDlg && pDlg->IsActive())
pDlg->Close();

// Call ClearFileItems() after our window has finished doing any WindowClose
// animations
ClearFileItems();
Expand Down

0 comments on commit 04ff814

Please sign in to comment.