summaryrefslogtreecommitdiff
path: root/ci.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-10-03 12:48:13 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-10-03 12:48:13 +0200
commit876ad5d5f6d8128ee92ad507a8ea1d536f9ae88b (patch)
tree9f471a23b85efd971463733909964d5ab099b9e8 /ci.c
parentb724e950d8eeb410c882d1915a33335eb6408943 (diff)
downloadvdr-876ad5d5f6d8128ee92ad507a8ea1d536f9ae88b.tar.gz
vdr-876ad5d5f6d8128ee92ad507a8ea1d536f9ae88b.tar.bz2
Fixed a crash with automatically closing CAM menus
Diffstat (limited to 'ci.c')
-rw-r--r--ci.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ci.c b/ci.c
index 0ef5a6e0..d4e30b43 100644
--- a/ci.c
+++ b/ci.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: ci.c 1.34 2005/10/03 10:32:51 kls Exp $
+ * $Id: ci.c 1.35 2005/10/03 12:48:13 kls Exp $
*/
#include "ci.h"
@@ -1248,7 +1248,8 @@ bool cCiMenu::AddEntry(char *s)
bool cCiMenu::HasUpdate(void)
{
- return mmi->HasUserIO();
+ // If the mmi is gone, the menu shall be closed, which also qualifies as 'update'.
+ return !mmi || mmi->HasUserIO();
}
bool cCiMenu::Select(int Index)