diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2011-02-26 15:35:30 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2011-02-26 15:35:30 +0100 |
commit | 387ee5b6049bb5b38191fb192a4c6831485dab1c (patch) | |
tree | cd9857e87129647bbab91f75ea37e73bafaad5a1 /menu.c | |
parent | 750d98f1e6bc5d5461213eb441864865f2288f83 (diff) | |
download | vdr-387ee5b6049bb5b38191fb192a4c6831485dab1c.tar.gz vdr-387ee5b6049bb5b38191fb192a4c6831485dab1c.tar.bz2 |
Fixed setting up the 'Recordings' menu in case there are several recordings with exactly the same name
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 4 |
1 files changed, 2 insertions, 2 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.26 2011/02/25 14:24:32 kls Exp $ + * $Id: menu.c 2.27 2011/02/26 15:28:32 kls Exp $ */ #include "menu.h" @@ -2276,7 +2276,7 @@ void cMenuRecordings::Set(bool Refresh) for (cRecording *recording = Recordings.First(); recording; recording = Recordings.Next(recording)) { if (!base || (strstr(recording->Name(), base) == recording->Name() && recording->Name()[strlen(base)] == FOLDERDELIMCHAR)) { cMenuRecordingItem *Item = new cMenuRecordingItem(recording, level); - if (*Item->Text() && (!LastItem || strcmp(Item->Text(), LastItemText) != 0)) { + if (*Item->Text() && (!Item->IsDirectory() || (!LastItem || !LastItem->IsDirectory() || strcmp(Item->Text(), LastItemText) != 0))) { Add(Item); LastItem = Item; free(LastItemText); |