Permalink
Browse files

Make incrementing in command line parser start from 0, not default.

This fixes an issue in MythShutdown where telling it to check the
recording status would actually have an opposite effect of ignoring it.
  • Loading branch information...
1 parent fe8e17d commit 7f18de069aa60b0a8aae2d1f11285da61bdab107 @wagnerrp wagnerrp committed May 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mythtv/libs/libmythbase/mythcommandlineparser.cpp
@@ -395,7 +395,7 @@ bool CommandLineArg::Set(QString opt)
case QVariant::Int:
if (m_stored.isNull())
- m_stored = QVariant(m_default.toInt() + 1);
+ m_stored = QVariant(1);
else
m_stored = QVariant(m_stored.toInt() + 1);
break;

0 comments on commit 7f18de0

Please sign in to comment.