Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,7 @@ static void saveOptions( void )
//-------------------------------------------------------------------------------------------------
// HTTP Proxy
GameWindow *textEntryHTTPProxy = TheWindowManager->winGetWindowFromId(NULL, NAMEKEY("OptionsMenu.wnd:TextEntryHTTPProxy"));
if (textEntryHTTPProxy)
if (textEntryHTTPProxy && textEntryHTTPProxy->winGetEnabled())
{
UnicodeString uStr = GadgetTextEntryGetText(textEntryHTTPProxy);
AsciiString aStr;
Expand All @@ -1107,7 +1107,7 @@ static void saveOptions( void )
//-------------------------------------------------------------------------------------------------
// Firewall Port Override
GameWindow *textEntryFirewallPortOverride = TheWindowManager->winGetWindowFromId(NULL, NAMEKEY("OptionsMenu.wnd:TextEntryFirewallPortOverride"));
if (textEntryFirewallPortOverride)
if (textEntryFirewallPortOverride && textEntryFirewallPortOverride->winGetEnabled())
{
UnicodeString uStr = GadgetTextEntryGetText(textEntryFirewallPortOverride);
AsciiString aStr;
Expand Down Expand Up @@ -1742,18 +1742,26 @@ void OptionsMenuInit( WindowLayout *layout, void *userData )
{
// disable controls that you can't change the options for in game
comboBoxLANIP->winEnable(FALSE);

if (comboBoxOnlineIP)
comboBoxOnlineIP->winEnable(FALSE);

checkSendDelay->winEnable(FALSE);

buttonFirewallRefresh->winEnable(FALSE);

if (comboBoxDetail)
comboBoxDetail->winEnable(FALSE);


if (comboBoxResolution)
comboBoxResolution->winEnable(FALSE);

if (textEntryFirewallPortOverride)
textEntryFirewallPortOverride->winEnable(FALSE);

if (textEntryHTTPProxy)
textEntryHTTPProxy->winEnable(FALSE);

// if (checkAudioSurround)
// checkAudioSurround->winEnable(FALSE);
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,7 @@ static void saveOptions( void )
//-------------------------------------------------------------------------------------------------
// HTTP Proxy
GameWindow *textEntryHTTPProxy = TheWindowManager->winGetWindowFromId(NULL, NAMEKEY("OptionsMenu.wnd:TextEntryHTTPProxy"));
if (textEntryHTTPProxy)
if (textEntryHTTPProxy && textEntryHTTPProxy->winGetEnabled())
{
UnicodeString uStr = GadgetTextEntryGetText(textEntryHTTPProxy);
AsciiString aStr;
Expand All @@ -1161,7 +1161,7 @@ static void saveOptions( void )
//-------------------------------------------------------------------------------------------------
// Firewall Port Override
GameWindow *textEntryFirewallPortOverride = TheWindowManager->winGetWindowFromId(NULL, NAMEKEY("OptionsMenu.wnd:TextEntryFirewallPortOverride"));
if (textEntryFirewallPortOverride)
if (textEntryFirewallPortOverride && textEntryFirewallPortOverride->winGetEnabled())
{
UnicodeString uStr = GadgetTextEntryGetText(textEntryFirewallPortOverride);
AsciiString aStr;
Expand Down Expand Up @@ -1812,18 +1812,26 @@ void OptionsMenuInit( WindowLayout *layout, void *userData )
{
// disable controls that you can't change the options for in game
comboBoxLANIP->winEnable(FALSE);

if (comboBoxOnlineIP)
comboBoxOnlineIP->winEnable(FALSE);

checkSendDelay->winEnable(FALSE);

buttonFirewallRefresh->winEnable(FALSE);

if (comboBoxDetail)
comboBoxDetail->winEnable(FALSE);


if (comboBoxResolution)
comboBoxResolution->winEnable(FALSE);

if (textEntryFirewallPortOverride)
textEntryFirewallPortOverride->winEnable(FALSE);

if (textEntryHTTPProxy)
textEntryHTTPProxy->winEnable(FALSE);

// if (checkAudioSurround)
// checkAudioSurround->winEnable(FALSE);
//
Expand Down
Loading