diff --git a/mythtv/libs/libmythtv/recordinginfo.cpp b/mythtv/libs/libmythtv/recordinginfo.cpp index 3e2e7a99b8e..9f90d9785d1 100644 --- a/mythtv/libs/libmythtv/recordinginfo.cpp +++ b/mythtv/libs/libmythtv/recordinginfo.cpp @@ -518,7 +518,12 @@ void RecordingInfo::ApplyRecordStateChange(RecordingType newstate, bool save) record->m_type = newstate; if (save) - record->Save(); + { + if (newstate == kNotRecording) + record->Delete(); + else + record->Save(); + } } /** \fn RecordingInfo::ApplyRecordRecPriorityChange(int)