[PVR] Timer window: Show error box if 'Add timer' is selected and PVR backend does...
authorKai Sommerfeld <kai.sommerfeld@gmx.com>
Tue, 26 Jan 2016 16:14:55 +0000 (17:14 +0100)
committerKai Sommerfeld <kai.sommerfeld@gmx.com>
Wed, 27 Jan 2016 19:00:26 +0000 (20:00 +0100)
xbmc/pvr/windows/GUIWindowPVRTimers.cpp

index bd5ea74..8c7093e 100644 (file)
@@ -377,6 +377,12 @@ bool CGUIWindowPVRTimers::ActionDeleteTimer(CFileItem *item)
 
 bool CGUIWindowPVRTimers::ActionShowTimer(CFileItem *item)
 {
+  if (!g_PVRClients->SupportsTimers())
+  {
+    CGUIDialogOK::ShowAndGetInput(CVariant{19033}, CVariant{19215}); // "Information", "The PVR backend does not support timers."
+    return false;
+  }
+
   bool bReturn = false;
 
   /* Check if "Add timer..." entry is pressed by OK, if yes