changed: disable PVR tab in system info if PVR is not running
authorspiff <spiff@xbmc.org>
Fri, 26 Oct 2012 09:10:32 +0000 (11:10 +0200)
committerspiff <spiff@xbmc.org>
Fri, 26 Oct 2012 09:10:32 +0000 (11:10 +0200)
addons/skin.touched
xbmc/windows/GUIWindowSystemInfo.cpp

index 1d03746..6e29c2e 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 1d03746646111f97e28b807a290bd762c7db547c
+Subproject commit 6e29c2ebb85c75a44418b13b06e5bc0583905be4
index 4c78d3d..57f0bbc 100644 (file)
@@ -24,6 +24,7 @@
 #include "guilib/GUIWindowManager.h"
 #include "guilib/Key.h"
 #include "guilib/LocalizeStrings.h"
+#include "pvr/PVRManager.h"
 #ifdef HAS_SYSINFO
 #include "utils/SystemInfo.h"
 #endif
@@ -58,6 +59,8 @@ bool CGUIWindowSystemInfo::OnMessage(CGUIMessage& message)
       ResetLabels();
       SET_CONTROL_LABEL(52, "XBMC " + g_infoManager.GetLabel(SYSTEM_BUILD_VERSION) +
                             " (Compiled: " + g_infoManager.GetLabel(SYSTEM_BUILD_DATE)+")");
+      CONTROL_ENABLE_ON_CONDITION(CONTROL_BT_PVR,
+                                  PVR::CPVRManager::Get().IsStarted());
       return true;
     }
     break;