diff options
-rw-r--r-- | ci.c | 9 | ||||
-rw-r--r-- | ci.h | 3 | ||||
-rw-r--r-- | menu.c | 9 |
3 files changed, 16 insertions, 5 deletions
@@ -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: @@ -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 { @@ -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; } |