Author: mzugec Date: Tue Jun 12 16:25:34 2007 New Revision: 38411 URL: http://svn.opensuse.org/viewcvs/yast?rev=38411&view=rev Log: fixed server configuration handling (#257568) Modified: trunk/slp-server/VERSION trunk/slp-server/package/yast2-slp-server.changes trunk/slp-server/src/dialogs.ycp Modified: trunk/slp-server/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/slp-server/VERSION?rev=38411&r1=38410&r2=38411&view=diff ============================================================================== --- trunk/slp-server/VERSION (original) +++ trunk/slp-server/VERSION Tue Jun 12 16:25:34 2007 @@ -1 +1 @@ -2.14.1 +2.14.2 Modified: trunk/slp-server/package/yast2-slp-server.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/slp-server/package/yast2-slp-server.changes?rev=38411&r1=38410&r2=38411&view=diff ============================================================================== --- trunk/slp-server/package/yast2-slp-server.changes (original) +++ trunk/slp-server/package/yast2-slp-server.changes Tue Jun 12 16:25:34 2007 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Tue Jun 12 16:24:57 CEST 2007 - mzugec@suse.cz + +- fixed server configuration handling (#257568) +- 2.14.2 + +------------------------------------------------------------------- Tue Nov 21 10:21:31 CET 2006 - mzugec@suse.cz - #219445 - slp-server with broken msgid Modified: trunk/slp-server/src/dialogs.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/slp-server/src/dialogs.ycp?rev=38411&r1=38410&r2=38411&view=diff ============================================================================== --- trunk/slp-server/src/dialogs.ycp (original) +++ trunk/slp-server/src/dialogs.ycp Tue Jun 12 16:25:34 2007 @@ -20,7 +20,7 @@ import "CWMFirewallInterfaces"; import "TablePopup"; import "LogView"; - +import "IP"; include "slp-server/helps.ycp"; void initServerSettings(string key); @@ -550,13 +550,12 @@ keys = []; UI::ChangeWidget(`id(`ip), `Value, SlpServer::slp_config["net.slp.daaddresses"]:""); UI::ChangeWidget(`id(`scope), `Value, SlpServer::slp_config["net.slp.usescopes"]:""); - if (SlpServer::slp_config["net.slp.isda"]:"" == "true") mode = `da_server; + if (SlpServer::slp_config["net.slp.isda"]:"false" == "true") mode = `da_server; else if (SlpServer::slp_config["net.slp.isbroadcastonly"]:"false" == "true") mode = `bc; else - if (SlpServer::slp_config["net.slp.passivedadetection"]:"false" == "false") mode = `mc; - else mode = `da; - + if (size(SlpServer::slp_config["net.slp.daaddresses"]:"")>0) mode = `da; + else mode = `mc; UI::ChangeWidget(`id(`resp), `CurrentButton, mode); changeResponseTo(mode); } @@ -578,7 +577,7 @@ { if (UI::QueryWidget(`id(`resp), `CurrentButton) == `da) { - if ( UI::QueryWidget(`id(`ip), `Value)=="" || UI::QueryWidget(`id(`scope), `Value)=="" ) + if ( !IP::Check((string)UI::QueryWidget(`id(`ip), `Value)) || UI::QueryWidget(`id(`scope), `Value)=="" ) { Popup::Error (_("Scope and IP address must be inserted.")); return false; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org