summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2008-01-13 14:31:47 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2008-01-13 14:31:47 +0100
commitd39cd60ef6737fdf67b6705869d877295e687c3d (patch)
tree8e375c10eaae92ab50db418eb976effc33d25d84
parent28f34ab67bbe4c53167f6e5d510c9b4078b107c5 (diff)
downloadvdr-d39cd60ef6737fdf67b6705869d877295e687c3d.tar.gz
vdr-d39cd60ef6737fdf67b6705869d877295e687c3d.tar.bz2
The automatic shutdown is now suppressed if the remote control is currently disabled
-rw-r--r--CONTRIBUTORS3
-rw-r--r--HISTORY2
-rw-r--r--shutdown.c5
3 files changed, 9 insertions, 1 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index f703555c..85be6428 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -591,6 +591,8 @@ Helmut Auer <vdr@helmutauer.de>
for a patch that was used to implement the SVDRP command REMO
for reporting a possible crash in decoding filename characters in case there are
not two hex digits after the '#'
+ for suggesting to suppress the automatic shutdown if the remote control is
+ currently disabled
Jeremy Hall <jhall@UU.NET>
for fixing an incomplete initialization of the filter parameters in eit.c
@@ -1549,6 +1551,7 @@ Udo Richter <udo_richter@gmx.de>
for improving shutdown handling
for making housekeeping wait for a while after a replay has ended
for fixing error handling in cCuttingThread::Action()
+ for suppressing the automatic shutdown if the remote control is currently disabled
Sven Kreiensen <svenk@kammer.uni-hannover.de>
for his help in keeping 'channels.conf.terr' up to date
diff --git a/HISTORY b/HISTORY
index f97539d6..06adff31 100644
--- a/HISTORY
+++ b/HISTORY
@@ -5558,3 +5558,5 @@ Video Disk Recorder Revision History
(reported by Jiri Dobry).
- The new plugin "pictures" implements a simple picture viewer.
See PLUGINS/src/pictures/README for details.
+- The automatic shutdown is now suppressed if the remote control is currently
+ disabled (suggested by Helmut Auer, implemented by Udo Richter).
diff --git a/shutdown.c b/shutdown.c
index bf548746..ea137edf 100644
--- a/shutdown.c
+++ b/shutdown.c
@@ -6,7 +6,7 @@
*
* Original version written by Udo Richter <udo_richter@gmx.de>.
*
- * $Id: shutdown.c 1.3 2007/11/25 13:49:27 kls Exp $
+ * $Id: shutdown.c 1.4 2008/01/13 14:27:29 kls Exp $
*/
#include "shutdown.h"
@@ -154,6 +154,9 @@ void cShutdownHandler::SetUserInactiveTimeout(int Seconds, bool Force)
bool cShutdownHandler::ConfirmShutdown(bool Interactive)
{
+ if (!Interactive && !cRemote::Enabled())
+ return false;
+
if (!shutdownCommand) {
if (Interactive)
Skins.Message(mtError, tr("Can't shutdown - option '-s' not given!"));