Skip to content

Commit 006ded1

Browse files
committed
Fix recording status strings being set to 'Not scheduled' when the reason for that is they were in the past and should have been marked as Recorded/Aborted/Failed/Cancelled/etc instead
1 parent 6bedf81 commit 006ded1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mythtv/libs/libmyth/programtypes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ QString toString(RecStatusType recstatus, uint id)
156156
/// \brief Converts "recstatus" into a short human readable description.
157157
QString toString(RecStatusType recstatus, RecordingType rectype)
158158
{
159-
if (rectype == kNotRecording)
159+
if (recstatus == rsUnknown && rectype == kNotRecording)
160160
return QObject::tr("Not Recording");
161161

162162
switch (recstatus)
@@ -218,7 +218,7 @@ QString toString(RecStatusType recstatus, RecordingType rectype)
218218
QString toDescription(RecStatusType recstatus, RecordingType rectype,
219219
const QDateTime &recstartts)
220220
{
221-
if (rectype == kNotRecording)
221+
if (recstatus == rsUnknown && rectype == kNotRecording)
222222
return QObject::tr("This showing is not scheduled to record");
223223

224224
QString message;

0 commit comments

Comments
 (0)