fixed bug in recordings list menu

This commit is contained in:
louis
2014-10-23 06:08:12 +02:00
parent 1809656e58
commit 69af1d531e
3 changed files with 8 additions and 6 deletions

View File

@@ -71,10 +71,12 @@ void cRecordingsFolderInfo::Rebuild(void)
#if APIVERSNUM < 20102
//cRecording::Folder() first available since VDR 2.1.2
const char *recName = rec->Name();
if (const char *s = strrchr(recName, FOLDERDELIMCHAR))
folder = cString(recName, s);
if (const char *s = strrchr(recName, FOLDERDELIMCHAR)) {
folder = recName;
folder.Truncate(s - recName);
}
else
folder = "";
folder = "";
#else
folder = rec->Folder();
#endif