From 7f18de069aa60b0a8aae2d1f11285da61bdab107 Mon Sep 17 00:00:00 2001 From: Raymond Wagner Date: Sat, 12 May 2012 00:01:58 -0400 Subject: [PATCH] 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. --- mythtv/libs/libmythbase/mythcommandlineparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mythtv/libs/libmythbase/mythcommandlineparser.cpp b/mythtv/libs/libmythbase/mythcommandlineparser.cpp index bfe71eed28a..70d02650f80 100644 --- a/mythtv/libs/libmythbase/mythcommandlineparser.cpp +++ b/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;