[yast-commit] r62871 - in /branches/SuSE-Code-11-SP1-Branch/network: VERSION src/lan/address.ycp
Author: mzugec Date: Tue Nov 23 14:56:27 2010 New Revision: 62871 URL: http://svn.opensuse.org/viewcvs/yast?rev=62871&view=rev Log: allow empty IPADDR together with BOOTPROTO='static' (bnc#652091) Modified: branches/SuSE-Code-11-SP1-Branch/network/VERSION branches/SuSE-Code-11-SP1-Branch/network/src/lan/address.ycp Modified: branches/SuSE-Code-11-SP1-Branch/network/VERSION URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/network/VERSION?rev=62871&r1=62870&r2=62871&view=diff ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/network/VERSION (original) +++ branches/SuSE-Code-11-SP1-Branch/network/VERSION Tue Nov 23 14:56:27 2010 @@ -1 +1 @@ -2.17.146 +2.17.147 Modified: branches/SuSE-Code-11-SP1-Branch/network/src/lan/address.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/network/src/lan/address.ycp?rev=62871&r1=62870&r2=62871&view=diff ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/network/src/lan/address.ycp (original) +++ branches/SuSE-Code-11-SP1-Branch/network/src/lan/address.ycp Tue Nov 23 14:56:27 2010 @@ -454,14 +454,14 @@ if (UI::QueryWidget(`bootproto, `CurrentButton) == `static) { string ipa = (string) UI::QueryWidget (`ipaddr, `Value); - if (! IP::Check(ipa)){ + if (ipa!="" && !IP::Check(ipa)){ Popup::Error(_("No valid IP address.")); UI::SetFocus(`ipaddr); return false; } string mask=(string) UI::QueryWidget (`netmask, `Value); - if(!validPrefixOrNetmask(ipa, mask)){ + if(ipa!="" && !validPrefixOrNetmask(ipa, mask)){ Popup::Error(_("No valid netmask or prefix lenght.")); UI::SetFocus(`netmask); return false; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
mzugec@svn2.opensuse.org