diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2013-10-14 09:59:04 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2013-10-14 09:59:04 +0200 |
commit | 396f8c96afd4b4221d249e71ed7f01f2fcadc26c (patch) | |
tree | 39b55e334cc0297392afa90b37a5d55306642387 /svdrp.c | |
parent | 9bd415d58e89c07104c6523a8a19e259edf25eb5 (diff) | |
download | vdr-396f8c96afd4b4221d249e71ed7f01f2fcadc26c.tar.gz vdr-396f8c96afd4b4221d249e71ed7f01f2fcadc26c.tar.bz2 |
Added refreshing the recording in the Recording Info/Edit menus
Diffstat (limited to 'svdrp.c')
-rw-r--r-- | svdrp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -10,7 +10,7 @@ * and interact with the Video Disk Recorder - or write a full featured * graphical interface that sits on top of an SVDRP connection. * - * $Id: svdrp.c 3.2 2013/10/10 12:18:12 kls Exp $ + * $Id: svdrp.c 3.3 2013/10/14 09:49:38 kls Exp $ */ #include "svdrp.h" @@ -1570,7 +1570,7 @@ void cSVDRP::CmdRENR(const char *Option) option = skipspace(++option); if (*option) { cString oldName = recording->Name(); - if (recording->ChangeName(option)) + if ((recording = Recordings.GetByName(recording->FileName())) != NULL && recording->ChangeName(option)) Reply(250, "Recording \"%s\" renamed to \"%s\"", *oldName, recording->Name()); else Reply(554, "Error while renaming recording \"%s\" to \"%s\"!", *oldName, option); |