diff options
Diffstat (limited to 'recmenuitem.c')
-rw-r--r-- | recmenuitem.c | 6 |
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; |