Skip to content
This repository has been archived by the owner on Sep 13, 2019. It is now read-only.

Commit

Permalink
Merge pull request xbmc#671 from cptspiff/closecontext
Browse files Browse the repository at this point in the history
changed: close context menu when hosting media window closes
  • Loading branch information
Arne Morten Kvarving committed Feb 7, 2012
2 parents 7252914 + 04ff814 commit 68e82e4
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 68e82e4

Please sign in to comment.