mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
The CAM enquiry menu now aborts if Menu is pressed
This commit is contained in:
parent
876ad5d5f6
commit
5956f7eeec
9
ci.c
9
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.35 2005/10/03 12:48:13 kls Exp $
|
||||
* $Id: ci.c 1.36 2005/10/03 12:58:22 kls Exp $
|
||||
*/
|
||||
|
||||
#include "ci.h"
|
||||
@ -1267,7 +1267,7 @@ bool cCiMenu::Cancel(void)
|
||||
|
||||
bool cCiMenu::Abort(void)
|
||||
{
|
||||
return mmi->SendCloseMMI();
|
||||
return mmi && mmi->SendCloseMMI();
|
||||
}
|
||||
|
||||
// --- cCiEnquiry ------------------------------------------------------------
|
||||
@ -1299,6 +1299,11 @@ bool cCiEnquiry::Cancel(void)
|
||||
return Reply(NULL);
|
||||
}
|
||||
|
||||
bool cCiEnquiry::Abort(void)
|
||||
{
|
||||
return mmi && mmi->SendCloseMMI();
|
||||
}
|
||||
|
||||
// --- cCiCaPmt --------------------------------------------------------------
|
||||
|
||||
// Ca Pmt List Management:
|
||||
|
3
ci.h
3
ci.h
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: ci.h 1.16 2005/10/02 13:20:41 kls Exp $
|
||||
* $Id: ci.h 1.17 2005/10/03 12:49:52 kls Exp $
|
||||
*/
|
||||
|
||||
#ifndef __CI_H
|
||||
@ -60,6 +60,7 @@ public:
|
||||
int ExpectedLength(void) { return expectedLength; }
|
||||
bool Reply(const char *s);
|
||||
bool Cancel(void);
|
||||
bool Abort(void);
|
||||
};
|
||||
|
||||
class cCiCaPmt {
|
||||
|
9
menu.c
9
menu.c
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: menu.c 1.373 2005/10/03 12:24:34 kls Exp $
|
||||
* $Id: menu.c 1.374 2005/10/03 12:53:51 kls Exp $
|
||||
*/
|
||||
|
||||
#include "menu.h"
|
||||
@ -1386,7 +1386,7 @@ cMenuCamEnquiry::cMenuCamEnquiry(cCiEnquiry *CiEnquiry)
|
||||
cMenuCamEnquiry::~cMenuCamEnquiry()
|
||||
{
|
||||
if (!replied)
|
||||
ciEnquiry->Cancel();
|
||||
ciEnquiry->Abort();
|
||||
free(input);
|
||||
delete ciEnquiry;
|
||||
}
|
||||
@ -1414,6 +1414,11 @@ eOSState cMenuCamEnquiry::ProcessKey(eKeys Key)
|
||||
default: break;
|
||||
}
|
||||
}
|
||||
else if (state == osBack) {
|
||||
ciEnquiry->Cancel();
|
||||
replied = true;
|
||||
return osEnd;
|
||||
}
|
||||
return state;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user