Network preflet : Wrongly forces to input a gateway and a DNS server
* While adding IPv4 basic validation, I overseen the possibility to leave those fields blank. Now, those fields can be left blank if you wish. Fixing ticket #4487. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33119 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -558,8 +558,10 @@ EthernetSettingsView::MessageReceived(BMessage* message)
|
||||
case kMsgApply:
|
||||
if (_ValidateControl(fIPTextControl)
|
||||
&& _ValidateControl(fNetMaskTextControl)
|
||||
&& _ValidateControl(fGatewayTextControl)
|
||||
&& _ValidateControl(fPrimaryDNSTextControl)
|
||||
&& (strlen(fGatewayTextControl->Text()) == 0
|
||||
|| _ValidateControl(fGatewayTextControl))
|
||||
&& (strlen(fPrimaryDNSTextControl->Text()) == 0
|
||||
|| _ValidateControl(fPrimaryDNSTextControl))
|
||||
&& (strlen(fSecondaryDNSTextControl->Text()) == 0
|
||||
|| _ValidateControl(fSecondaryDNSTextControl)))
|
||||
_SaveConfiguration();
|
||||
|
||||
Reference in New Issue
Block a user