Skip to content

Commit

Permalink
Settings: Don't hardcode fallback strings for the help & title text a…
Browse files Browse the repository at this point in the history
…reas
  • Loading branch information
natanojl committed Apr 11, 2015
1 parent 0a52dfd commit ea41315
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions mythtv/libs/libmyth/standardsettings.cpp
Expand Up @@ -764,8 +764,6 @@ void StandardSettingDialog::settingSelected(MythUIButtonListItem *item)
if (setting && m_selectedSettingHelp)
{
m_selectedSettingHelp->SetText(setting->getHelpText());
if (m_selectedSettingHelp->GetText().isEmpty())
m_selectedSettingHelp->SetText("This setting need a description");
}
}

Expand Down Expand Up @@ -850,13 +848,9 @@ void StandardSettingDialog::setCurrentGroupSetting(
m_currentGroupSetting->Open();

m_title->SetText(m_currentGroupSetting->getLabel());
if (m_title->GetText().isEmpty())
m_title->SetText("This group need a title");
if (m_groupHelp)
{
m_groupHelp->SetText(m_currentGroupSetting->getHelpText());
if (m_groupHelp->GetText().isEmpty())
m_groupHelp->SetText("This group need a description");
}
updateSettings(selectedSetting);
connect(m_currentGroupSetting,
Expand Down

0 comments on commit ea41315

Please sign in to comment.