diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2013-04-27 10:18:08 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2013-04-27 10:18:08 +0200 |
commit | cffde6ee0951c4ced016860901f942b674eed1c1 (patch) | |
tree | 08c40510667bbc48ca5f3c420bfef5b4ddfdc91e /menu.c | |
parent | 2266b0e633f209bcfe3f4c02a212c07131207fdc (diff) | |
download | vdr-cffde6ee0951c4ced016860901f942b674eed1c1.tar.gz vdr-cffde6ee0951c4ced016860901f942b674eed1c1.tar.bz2 |
Fixed multiple occurrences of the same directory in the recordings list in case there are directories that only differ in non-alphanumeric characters
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 2.82 2013/03/18 09:11:48 kls Exp $ + * $Id: menu.c 2.82.1.1 2013/04/27 10:15:16 kls Exp $ */ #include "menu.h" @@ -2302,14 +2302,12 @@ void cMenuRecordings::Set(bool Refresh) } else delete Item; - if (LastItem) { + if (LastItem || LastDir) { if (CurrentRecording && strcmp(CurrentRecording, recording->FileName()) == 0) - SetCurrent(LastItem); + SetCurrent(LastDir ? LastDir : LastItem); } - if (LastDir) { + if (LastDir) LastDir->IncrementCounter(recording->IsNew()); - LastItem = LastDir; - } } } if (Refresh) |