summaryrefslogtreecommitdiff
path: root/recmenuitem.c
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-07-18 17:03:44 +0200
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-07-19 11:38:07 +0200
commit15ce11db5fe79eda5b5c3c204df8d0a628b03417 (patch)
treef4b9f0fed61f579032b571214f03ce463d6b7920 /recmenuitem.c
parent0d3dd79585dcf92efb2de7707835fb5256917f3a (diff)
downloadvdr-plugin-tvguide-15ce11db5fe79eda5b5c3c204df8d0a628b03417.tar.gz
vdr-plugin-tvguide-15ce11db5fe79eda5b5c3c204df8d0a628b03417.tar.bz2
Rework cRecMenuItemBool
Diffstat (limited to 'recmenuitem.c')
-rw-r--r--recmenuitem.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/recmenuitem.c b/recmenuitem.c
index b5c8379..1cd9fbc 100644
--- a/recmenuitem.c
+++ b/recmenuitem.c
@@ -405,14 +405,13 @@ eRecMenuState cRecMenuItemInt::ProcessKey(eKeys Key) {
// --- cRecMenuItemBool -------------------------------------------------------
cRecMenuItemBool::cRecMenuItemBool(cString text,
- bool initialVal,
bool active,
bool *callback,
eRecMenuState action,
bool refresh) {
selectable = true;
this->text = text;
- this->yes = initialVal;
+ this->yes = *callback;
this->refresh = refresh;
this->active = active;
this->callback = callback;
@@ -422,14 +421,13 @@ cRecMenuItemBool::cRecMenuItemBool(cString text,
}
cRecMenuItemBool::cRecMenuItemBool(cString text,
- bool initialVal,
bool active,
int *callback,
eRecMenuState action,
bool refresh) {
selectable = true;
this->text = text;
- this->yes = initialVal;
+ this->yes = *callback;
this->refresh = refresh;
this->active = active;
this->callback = (bool*)callback;