diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2008-01-13 14:31:47 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2008-01-13 14:31:47 +0100 |
commit | d39cd60ef6737fdf67b6705869d877295e687c3d (patch) | |
tree | 8e375c10eaae92ab50db418eb976effc33d25d84 /shutdown.c | |
parent | 28f34ab67bbe4c53167f6e5d510c9b4078b107c5 (diff) | |
download | vdr-d39cd60ef6737fdf67b6705869d877295e687c3d.tar.gz vdr-d39cd60ef6737fdf67b6705869d877295e687c3d.tar.bz2 |
The automatic shutdown is now suppressed if the remote control is currently disabled
Diffstat (limited to 'shutdown.c')
-rw-r--r-- | shutdown.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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!")); |