[PVR] PVR Windows: Only the active window must update the shared slected item path.
authorKai Sommerfeld <kai.sommerfeld@gmx.com>
Sun, 7 Feb 2016 08:34:38 +0000 (09:34 +0100)
committerKai Sommerfeld <kai.sommerfeld@gmx.com>
Sun, 7 Feb 2016 13:13:59 +0000 (14:13 +0100)
xbmc/pvr/windows/GUIWindowPVRBase.cpp

index bdc0e62..6b7937c 100644 (file)
@@ -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);
 }