summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2015-09-11 08:29:41 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2015-09-11 08:29:41 +0200
commitf1bef11f45f4e3450b51d4c4b5ccf4f52e7039e9 (patch)
tree114d602c8637ed6744007109579ca5b278434fea /vdr.c
parent4e46d2bb3bbcaa72bc106170d9a7dd0ec77ddd0d (diff)
downloadvdr-f1bef11f45f4e3450b51d4c4b5ccf4f52e7039e9.tar.gz
vdr-f1bef11f45f4e3450b51d4c4b5ccf4f52e7039e9.tar.bz2
Implemented the setup option "Recording/Record key handling"
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/vdr.c b/vdr.c
index 68c8a9e1..6b0bf2b0 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.tvdr.de
*
- * $Id: vdr.c 4.6 2015/09/08 10:00:46 kls Exp $
+ * $Id: vdr.c 4.7 2015/09/11 08:02:50 kls Exp $
*/
#include <getopt.h>
@@ -1310,8 +1310,12 @@ int main(int argc, char *argv[])
// Instant recording:
case kRecord:
if (!cControl::Control()) {
- if (cRecordControls::Start())
- Skins.QueueMessage(mtInfo, tr("Recording started"));
+ if (Setup.RecordKeyHandling) {
+ if (Setup.RecordKeyHandling > 1 || Interface->Confirm(tr("Start recording?"))) {
+ if (cRecordControls::Start())
+ Skins.QueueMessage(mtInfo, tr("Recording started"));
+ }
+ }
key = kNone; // nobody else needs to see this key
}
break;