Permalink
Browse files

Fix the handling of mythshutdown --setwakeup

Fixes #9865

Signed-off-by: Gavin Hurlbut <ghurlbut@mythtv.org>
  • Loading branch information...
mrrooster authored and Beirdo committed Jun 23, 2011
1 parent 98df691 commit 32ca3573346ef1e0f5f0d07f0b71cab4049ade88
Showing with 1 addition and 2 deletions.
  1. +1 −2 mythtv/programs/mythshutdown/main.cpp
@@ -747,7 +747,6 @@ int main(int argc, char **argv)
bool bStartup = false;
bool bShutdown = false;
bool bGetStatus = false;
- bool bSetWakeupTime = false;
QString sWakeupTime = "";
bool bSetScheduledWakeupTime = false;
bool bCheckAndShutdown = false;
@@ -845,7 +844,7 @@ int main(int argc, char **argv)
res = shutdown();
else if (bGetStatus)
res = getStatus(bWantRecStatus);
- else if (bSetWakeupTime)
+ else if (!sWakeupTime.isEmpty())
res = setWakeupTime(sWakeupTime);
else if (bCheckAndShutdown)
{

0 comments on commit 32ca357

Please sign in to comment.