Skip to content

Commit

Permalink
cosmetics: disable webserver port if "Allow control of XBMC via HTTP"…
Browse files Browse the repository at this point in the history
… is off
  • Loading branch information
amet committed May 25, 2011
1 parent f13b67d commit ba5c555
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions xbmc/settings/GUIWindowSettingsCategory.cpp
Expand Up @@ -821,13 +821,9 @@ void CGUIWindowSettingsCategory::UpdateSettings()
g_guiSettings.GetString("audiooutput.audiodevice").find("wasapi:") == CStdString::npos);
}
#ifdef HAS_WEB_SERVER
else if (strSetting.Equals("services.webserverusername"))
{
CGUIEditControl *pControl = (CGUIEditControl *)GetControl(pSettingControl->GetID());
if (pControl)
pControl->SetEnabled(g_guiSettings.GetBool("services.webserver"));
}
else if (strSetting.Equals("services.webserverpassword"))
else if (strSetting.Equals("services.webserverport") ||
strSetting.Equals("services.webserverusername") ||
strSetting.Equals("services.webserverpassword"))
{
CGUIEditControl *pControl = (CGUIEditControl *)GetControl(pSettingControl->GetID());
if (pControl)
Expand Down

0 comments on commit ba5c555

Please sign in to comment.