Skip to content

Commit

Permalink
Ungrey Master Backend Name in mythtv-setup settings page
Browse files Browse the repository at this point in the history
Show the Master Backend Name with a GroupSetting instead
of with a disabled GlobalTextEditSetting.
This makes the help text accessible and it ungreys the label.
  • Loading branch information
kmdewaal committed Jan 3, 2020
1 parent 27188d9 commit 5cc67d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions mythtv/programs/mythtv-setup/backendsettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,11 @@ static TransMythUICheckBoxSetting *IsMasterBackend()
return gc;
};

static GlobalTextEditSetting *MasterServerName()
static GroupSetting *MasterServerName()
{
auto *gc = new GlobalTextEditSetting("MasterServerName");
auto *gc = new GroupSetting();
gc->setLabel(QObject::tr("Master Backend Name"));
gc->setValue("");
gc->setEnabled(false);
gc->setHelpText(QObject::tr(
"Host name of Master Backend. This is set by selecting "
"\"This server is the Master Backend\" on that server."));
Expand Down
2 changes: 1 addition & 1 deletion mythtv/programs/mythtv-setup/backendsettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class BackendSettings : public GroupSetting
TransMythUICheckBoxSetting *m_isMasterBackend {nullptr};
HostTextEditSetting *m_localServerPort {nullptr};
HostComboBoxSetting *m_backendServerAddr {nullptr};
GlobalTextEditSetting *m_masterServerName {nullptr};
GroupSetting *m_masterServerName {nullptr};
IpAddressSettings *m_ipAddressSettings {nullptr};
bool m_isLoaded {false};
QString m_priorMasterName;
Expand Down

0 comments on commit 5cc67d5

Please sign in to comment.