Skip to content

Commit

Permalink
Allow filters on kSingleRecord rules.
Browse files Browse the repository at this point in the history
Most filters probably don't make sense for kSingleRecord rules, but
some, like "High Definition," do, so allow them.  If choosing
nonsensical rules becomes a problem, I'll add support to allow only
the ones that make sense.
  • Loading branch information
gigem committed Jun 21, 2011
1 parent 63702bf commit 434b135
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mythtv/programs/mythfrontend/scheduleeditor.cpp
Expand Up @@ -510,12 +510,13 @@ bool SchedOptEditor::Create()
if (!UIUtilW::Assign(this, m_backButton, "back"))
connect(m_backButton, SIGNAL(Clicked()), SLOT(Close()));

if ((m_recordingRule->m_type == kSingleRecord) ||
(m_recordingRule->m_type ==kOverrideRecord))
if (m_recordingRule->m_type == kOverrideRecord)
m_filtersButton->SetEnabled(false);
if (m_recordingRule->m_type == kSingleRecord ||
m_recordingRule->m_type == kOverrideRecord)
{
m_dupmethodList->SetEnabled(false);
m_dupscopeList->SetEnabled(false);
m_filtersButton->SetEnabled(false);
}

connect(m_dupmethodList, SIGNAL(itemSelected(MythUIButtonListItem *)),
Expand Down

0 comments on commit 434b135

Please sign in to comment.