summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-05-16 12:46:15 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-05-16 12:46:15 +0200
commit7399d8eff42e73420a13440d021431e8d8e7d78c (patch)
tree81d316e957064a5ca83b0b1634ed383f44ce9691 /menu.c
parent6702994adc8ee6951484b9e6b9ab1131cfa6c876 (diff)
downloadvdr-7399d8eff42e73420a13440d021431e8d8e7d78c.tar.gz
vdr-7399d8eff42e73420a13440d021431e8d8e7d78c.tar.bz2
No longer starting the editing process if no marks have been set
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/menu.c b/menu.c
index 5d02ce71..f4c58b35 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 1.244 2003/05/11 16:06:05 kls Exp $
+ * $Id: menu.c 1.245 2003/05/16 12:40:12 kls Exp $
*/
#include "menu.h"
@@ -3494,7 +3494,9 @@ void cReplayControl::EditCut(void)
if (fileName) {
Hide();
if (!cCutter::Active()) {
- if (!cCutter::Start(fileName))
+ if (!marks.Count())
+ Interface->Error(tr("No editing marks defined!"));
+ else if (!cCutter::Start(fileName))
Interface->Error(tr("Can't start editing process!"));
else
Interface->Info(tr("Editing process started"));