summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2015-02-07 16:01:13 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2015-02-07 16:01:13 +0100
commit202a6b3072d996f05ab45c635c2e8108e7735025 (patch)
tree1096fa6ea07c3d4551adb31614b914a70be846a0 /menu.c
parent5b88d0bfac4568bc2a273f7d44d3298d2515dfac (diff)
downloadvdr-202a6b3072d996f05ab45c635c2e8108e7735025.tar.gz
vdr-202a6b3072d996f05ab45c635c2e8108e7735025.tar.bz2
Added a confirmation before renaming a recording to its folder name
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/menu.c b/menu.c
index 1635fa1f..6906cc65 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 3.45 2015/02/07 15:42:37 kls Exp $
+ * $Id: menu.c 3.46 2015/02/07 15:56:26 kls Exp $
*/
#include "menu.h"
@@ -2435,15 +2435,17 @@ eOSState cMenuRecordingEdit::Action(void)
eOSState cMenuRecordingEdit::RemoveName(void)
{
if (Get(Current()) == nameItem) {
- char *s = strrchr(folder, FOLDERDELIMCHAR);
- if (s)
- *s++ = 0;
- else
- s = folder;
- strn0cpy(name, s, sizeof(name));
- if (s == folder)
- *s = 0;
- Set();
+ if (Interface->Confirm(tr("Rename recording to folder name?"))) {
+ char *s = strrchr(folder, FOLDERDELIMCHAR);
+ if (s)
+ *s++ = 0;
+ else
+ s = folder;
+ strn0cpy(name, s, sizeof(name));
+ if (s == folder)
+ *s = 0;
+ Set();
+ }
}
return osContinue;
}