aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Sommerfeld <kai.sommerfeld@gmx.com>2016-02-07 09:34:38 +0100
committerKai Sommerfeld <kai.sommerfeld@gmx.com>2016-02-07 14:13:59 +0100
commit648ae83c0bbc1bc674813aeb6447157d1ee74df0 (patch)
treed602882c542fcad6f91b36e09c8ebe102b03bf97
parent3afb62559e3ac5db8ebadfe7d83c25c534552404 (diff)
[PVR] PVR Windows: Only the active window must update the shared slected item path.
-rw-r--r--xbmc/pvr/windows/GUIWindowPVRBase.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/xbmc/pvr/windows/GUIWindowPVRBase.cpp b/xbmc/pvr/windows/GUIWindowPVRBase.cpp
index bdc0e626bf..6b7937c5d0 100644
--- a/xbmc/pvr/windows/GUIWindowPVRBase.cpp
+++ b/xbmc/pvr/windows/GUIWindowPVRBase.cpp
@@ -87,7 +87,13 @@ std::string CGUIWindowPVRBase::GetSelectedItemPath(bool bRadio)
void CGUIWindowPVRBase::Notify(const Observable &obs, const ObservableMessage msg)
{
- UpdateSelectedItemPath();
+ if (IsActive())
+ {
+ // Only the active window must set the selected item path which is shared
+ // between all PVR windows, not the last notified window (observer).
+ UpdateSelectedItemPath();
+ }
+
CGUIMessage m(GUI_MSG_REFRESH_LIST, GetID(), 0, msg);
CApplicationMessenger::GetInstance().SendGUIMessage(m);
}