diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2017-11-27 15:19:43 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2017-11-27 15:19:43 +0100 |
commit | 990bc6a11f675cb54c7f1f6495f931a1f6b61f8c (patch) | |
tree | 651c5554ec8f37714afe4a85e04d2f05439d6b74 /menu.c | |
parent | 91774cf074d449681c1430439b8fed63d4dfba4f (diff) | |
download | vdr-990bc6a11f675cb54c7f1f6495f931a1f6b61f8c.tar.gz vdr-990bc6a11f675cb54c7f1f6495f931a1f6b61f8c.tar.bz2 |
Fixed positioning the cursor in the Recordings menu when moving a recording between different volumes
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 4.45 2017/11/26 15:07:00 kls Exp $ + * $Id: menu.c 4.46 2017/11/27 15:19:07 kls Exp $ */ #include "menu.h" @@ -2960,8 +2960,10 @@ void cMenuRecordings::Set(bool Refresh) const char *CurrentRecording = *fileName ? *fileName : cReplayControl::LastReplayed(); cRecordings *Recordings = cRecordings::GetRecordingsWrite(recordingsStateKey); // write access is necessary for sorting! cMenuRecordingItem *LastItem = NULL; - if (cMenuRecordingItem *ri = (cMenuRecordingItem *)Get(Current())) - CurrentRecording = ri->Recording()->FileName(); + if (!CurrentRecording) { + if (cMenuRecordingItem *ri = (cMenuRecordingItem *)Get(Current())) + CurrentRecording = ri->Recording()->FileName(); + } int current = Current(); Clear(); GetRecordingsSortMode(DirectoryName()); |