From ba5c5556019da81f655503c332ac69a82a2102b1 Mon Sep 17 00:00:00 2001 From: amet Date: Wed, 25 May 2011 15:53:37 +0400 Subject: [PATCH] cosmetics: disable webserver port if "Allow control of XBMC via HTTP" is off --- xbmc/settings/GUIWindowSettingsCategory.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/xbmc/settings/GUIWindowSettingsCategory.cpp b/xbmc/settings/GUIWindowSettingsCategory.cpp index 655b78a1e6772..1dd762ad3c0d6 100644 --- a/xbmc/settings/GUIWindowSettingsCategory.cpp +++ b/xbmc/settings/GUIWindowSettingsCategory.cpp @@ -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)