Index: programs/mythtv-setup/backendsettings.cpp =================================================================== --- programs/mythtv-setup/backendsettings.cpp (revision 22882) +++ programs/mythtv-setup/backendsettings.cpp (working copy) @@ -384,14 +384,15 @@ return gc; }; -static HostLineEdit *SleepCommand() +static GlobalCheckBox *AllowSlaveToSleep() { - HostLineEdit *gc = new HostLineEdit("SleepCommand"); - gc->setLabel(QObject::tr("Sleep Command")); - gc->setValue(""); - gc->setHelpText(QObject::tr("The command used to put this slave to sleep. " - "If set, the master backend will use this command to put " - "this slave to sleep when it is not needed for recording.")); + GlobalCheckBox *gc = new GlobalCheckBox("AllowSlaveToSleep"); + gc->setLabel(QObject::tr("Allow slave to go to sleep")); + gc->setValue(false); + QString help = QObject::tr( + "If enabled, slave can be put to sleep when they idle and when " + "the Pre-Shutdown check-command exits successfully."); + gc->setHelpText(help); return gc; }; @@ -402,7 +403,7 @@ gc->setValue(""); gc->setHelpText(QObject::tr("The command used to wake up this slave " "from sleep. This setting is not used on the master " - "backend.")); + "backend. '%SLAVE%' will be replaced by the slave hostname")); return gc; }; @@ -826,7 +827,7 @@ VerticalConfigurationGroup* slaveBackend = new VerticalConfigurationGroup(); slaveBackend->setLabel(QObject::tr("Slave Backends")); - slaveBackend->addChild(SleepCommand()); + slaveBackend->addChild(AllowSlaveToSleep()); slaveBackend->addChild(WakeUpCommand()); group4->addChild(slaveBackend); addChild(group4);