diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2014-03-09 15:15:48 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2014-03-09 15:15:48 +0100 |
commit | 40aaf784b95311a3e3b764a1737d8ecc7ca68279 (patch) | |
tree | 3c5fc5d5031e19abda8d41c0bf62b131af346e98 /menu.c | |
parent | db1ca2c854fedccd2402dfd10f3d166d4a73240d (diff) | |
download | vdr-40aaf784b95311a3e3b764a1737d8ecc7ca68279.tar.gz vdr-40aaf784b95311a3e3b764a1737d8ecc7ca68279.tar.bz2 |
The Recordings menu now remembers the last recording the cursor was positioned on
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 3.21 2014/03/09 13:03:10 kls Exp $ + * $Id: menu.c 3.22 2014/03/09 15:01:31 kls Exp $ */ #include "menu.h" @@ -2597,6 +2597,10 @@ cMenuRecordings::cMenuRecordings(const char *Base, int Level, bool OpenSubMenus, cMenuRecordings::~cMenuRecordings() { + if (cMenuRecordingItem *ri = (cMenuRecordingItem *)Get(Current())) { + if (!ri->IsDirectory()) + SetRecording(ri->Recording()->FileName()); + } free(base); } @@ -4961,6 +4965,7 @@ void cReplayControl::Stop(void) } } cDvbPlayerControl::Stop(); + cMenuRecordings::SetRecording(NULL); // make sure opening the Recordings menu navigates to the last replayed recording } void cReplayControl::SetRecording(const char *FileName) |