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

@ -28,5 +28,5 @@ Version 0.0.2
- fixed bug that new font was displayed first after VDR restart when font was changed in OSD Setup menu
- display always newest recording of folders in recordings list, thanks@ Lars Hanisch for providing the patch
- added extented recording information
- added token {nummenuitem} as number of item in for every list, value starts with 1
- added token {nummenuitem} as number of item for every list, value starts with 1

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

View File

@ -41,7 +41,7 @@ void cTemplateView::SetParameters(vector<pair<string, string> > &params) {
parameters->SetParameters(params);
}
void cTemplateView::SetContainer(int x, int y, int width, int height) {
void cTemplateView::SetContainer(int x, int y, int width, int height) {
containerX = x;
containerY = y;
containerWidth = width;
@ -341,7 +341,7 @@ void cTemplateView::PreCache(bool isSubview) {
}
//Calculate OSD Size
parameters->CalculateParameters();
int osdX = parameters->GetNumericParameter(ptX);
int osdY = parameters->GetNumericParameter(ptY);
int osdWidth = parameters->GetNumericParameter(ptWidth);