Skip to content

Commit

Permalink
Make incrementing in command line parser start from 0, not default.
Browse files Browse the repository at this point in the history
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
wagnerrp committed May 12, 2012
1 parent fe8e17d commit 7f18de0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/mythcommandlineparser.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 7f18de0

Please sign in to comment.