Skip to content

Commit 7f18de0

Browse files
committed
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.
1 parent fe8e17d commit 7f18de0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mythtv/libs/libmythbase/mythcommandlineparser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ bool CommandLineArg::Set(QString opt)
395395

396396
case QVariant::Int:
397397
if (m_stored.isNull())
398-
m_stored = QVariant(m_default.toInt() + 1);
398+
m_stored = QVariant(1);
399399
else
400400
m_stored = QVariant(m_stored.toInt() + 1);
401401
break;

0 commit comments

Comments
 (0)