Permalink
Browse files

Don't enable metadata button in schedule editor if not recording.

  • Loading branch information...
gigem committed Aug 12, 2012
1 parent d5feeb6 commit be2f9d9febe857b54edc695a7ed122f77580ee3d
Showing with 3 additions and 2 deletions.
  1. +3 −2 mythtv/programs/mythfrontend/scheduleeditor.cpp
@@ -178,8 +178,6 @@ bool ScheduleEditor::Create()
connect(m_cancelButton, SIGNAL(Clicked()), SLOT(Close()));
connect(m_saveButton, SIGNAL(Clicked()), SLOT(Save()));
- if (m_metadataButton)
- m_metadataButton->SetEnabled(!m_recordingRule->m_isTemplate);
if (m_schedInfoButton)
m_schedInfoButton->SetEnabled(!m_recordingRule->m_isTemplate);
if (m_previewButton)
@@ -357,6 +355,9 @@ void ScheduleEditor::RuleChanged(MythUIButtonListItem *item)
m_storeOptButton->SetEnabled(isScheduled);
if (m_postProcButton)
m_postProcButton->SetEnabled(isScheduled);
+ if (m_metadataButton)
+ m_metadataButton->SetEnabled(isScheduled &&
+ !m_recordingRule->m_isTemplate);
SchedOptMixin::RuleChanged();
StoreOptMixin::RuleChanged();

0 comments on commit be2f9d9

Please sign in to comment.