Skip to content

Commit 1ead6b7

Browse files
committed
Use MasterServerIP instead of the master's hostname in Theme Chooser.
Fix an issue found by Mark Kendall that was causing the Theme Chooser to fail certain operations if the master backend's hostname was not in DNS. Instead of using the hostname, use the master's IP as defined by the MasterServerIP setting.
1 parent 26ab0d1 commit 1ead6b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mythtv/programs/mythfrontend/themechooser.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ ThemeUpdateChecker::ThemeUpdateChecker() :
882882
}
883883

884884
m_infoPackage = QString("myth://Temp@%1/remotethemes/themes.zip")
885-
.arg(gCoreContext->GetMasterHostName());
885+
.arg(gCoreContext->GetSetting("MasterServerIP"));
886886

887887
gCoreContext->SaveSetting("ThemeUpdateStatus", QString());
888888

@@ -909,7 +909,7 @@ void ThemeUpdateChecker::checkForUpdate(void)
909909
{
910910
QString remoteThemeDir =
911911
QString("myth://Temp@%1/remotethemes/%2/%3")
912-
.arg(gCoreContext->GetMasterHostName())
912+
.arg(gCoreContext->GetSetting("MasterServerIP"))
913913
.arg(m_mythVersion).arg(GetMythUI()->GetThemeName());
914914
QString infoXML = remoteThemeDir;
915915
infoXML.append("/themeinfo.xml");

0 commit comments

Comments
 (0)