diff options
Diffstat (limited to 'mymenumoverecording.c')
-rw-r--r-- | mymenumoverecording.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mymenumoverecording.c b/mymenumoverecording.c index 317c3f2..5f41b61 100644 --- a/mymenumoverecording.c +++ b/mymenumoverecording.c @@ -64,6 +64,7 @@ myMenuMoveRecordingItem::myMenuMoveRecordingItem(cRecording *Recording,int Level if(Level<level) { +/* s=Recording->Name(); while(Level) { @@ -75,6 +76,22 @@ myMenuMoveRecordingItem::myMenuMoveRecordingItem(cRecording *Recording,int Level if(p) *p=0; SetText(title); +*/ + s=Recording->Name(); + const char *p=s; + while(*++s) + { + if(*s == '~') + { + if(Level--) + p=s+1; + else + break; + } + } + title=MALLOC(char,s-p+1); + strn0cpy(title,p,s-p+1); + SetText(title); } else SetText(""); |