Permalink
Browse files

Delete the corresponding program entries when a manual recording rule

is deleted.
  • Loading branch information...
gigem committed May 13, 2013
1 parent 38608a4 commit 526e89027ce152d2bffaa846cd3c1aff217c866d
Showing with 10 additions and 0 deletions.
  1. +10 −0 mythtv/libs/libmythtv/recordingrule.cpp
@@ -510,6 +510,16 @@ bool RecordingRule::Delete(bool sendSig)
MythDB::DBError("ScheduledRecording::remove -- oldfind", query);
}
if (m_searchType == kManualSearch)
{
query.prepare("DELETE FROM program WHERE manualid = :RECORDID");
query.bindValue(":RECORDID", m_recordID);
if (!query.exec())
{
MythDB::DBError("ScheduledRecording::remove -- oldfind", query);
}
}
if (sendSig)
ScheduledRecording::RescheduleMatch(m_recordID, 0, 0, QDateTime(),
QString("DeleteRule %1").arg(m_title));

0 comments on commit 526e890

Please sign in to comment.