projects
/
vuplus_xbmc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab522c3
)
changed: close context menu when hosting media window closes
author
spiff
<spiff@xbmc.org>
Mon, 6 Feb 2012 21:15:27 +0000
(22:15 +0100)
committer
spiff
<spiff@xbmc.org>
Mon, 6 Feb 2012 21:16:58 +0000
(22:16 +0100)
xbmc/windows/GUIMediaWindow.cpp
patch
|
blob
|
history
diff --git
a/xbmc/windows/GUIMediaWindow.cpp
b/xbmc/windows/GUIMediaWindow.cpp
index
6a9c905
..
e0f65cb
100644
(file)
--- a/
xbmc/windows/GUIMediaWindow.cpp
+++ b/
xbmc/windows/GUIMediaWindow.cpp
@@
-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();