diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2015-09-11 08:29:41 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2015-09-11 08:29:41 +0200 |
commit | f1bef11f45f4e3450b51d4c4b5ccf4f52e7039e9 (patch) | |
tree | 114d602c8637ed6744007109579ca5b278434fea /vdr.c | |
parent | 4e46d2bb3bbcaa72bc106170d9a7dd0ec77ddd0d (diff) | |
download | vdr-f1bef11f45f4e3450b51d4c4b5ccf4f52e7039e9.tar.gz vdr-f1bef11f45f4e3450b51d4c4b5ccf4f52e7039e9.tar.bz2 |
Implemented the setup option "Recording/Record key handling"
Diffstat (limited to 'vdr.c')
-rw-r--r-- | vdr.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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; |