summaryrefslogtreecommitdiff
path: root/svdrp.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2013-10-14 09:59:04 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2013-10-14 09:59:04 +0200
commit396f8c96afd4b4221d249e71ed7f01f2fcadc26c (patch)
tree39b55e334cc0297392afa90b37a5d55306642387 /svdrp.c
parent9bd415d58e89c07104c6523a8a19e259edf25eb5 (diff)
downloadvdr-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/svdrp.c b/svdrp.c
index 1d2593a2..7f91479f 100644
--- a/svdrp.c
+++ b/svdrp.c
@@ -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);