From d39cd60ef6737fdf67b6705869d877295e687c3d Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 13 Jan 2008 14:31:47 +0100 Subject: The automatic shutdown is now suppressed if the remote control is currently disabled --- shutdown.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'shutdown.c') 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 . * - * $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!")); -- cgit v1.2.3