Author: kmachalkova Date: Thu Apr 2 11:44:24 2009 New Revision: 56566 URL: http://svn.opensuse.org/viewcvs/yast?rev=56566&view=rev Log: Show "really abort" pop-up dialog only when there is something to do (#460156) Modified: trunk/network/src/services/host.ycp Modified: trunk/network/src/services/host.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/network/src/services/host.ycp?rev=56566&r1=56565&r2=56566&view=diff ============================================================================== --- trunk/network/src/services/host.ycp (original) +++ trunk/network/src/services/host.ycp Thu Apr 2 11:44:24 2009 @@ -150,7 +150,7 @@ /* abort? */ if(ret == `abort || ret == `cancel) { - if(ReallyAbort()) break; + if(ReallyAbortCond( Host::GetModified()) ) break; else continue; } /* add host */ @@ -162,6 +162,7 @@ UI::ChangeWidget(`id(`table), `Items, table_items); UI::ChangeWidget(`id(`table), `CurrentItem, max); max = max + 1; + Host::SetModified(); continue; } /* edit host */ @@ -210,6 +211,7 @@ }); UI::ChangeWidget(`id(`table), `Items, table_items); UI::ChangeWidget(`id(`table), `CurrentItem, cur); + Host::SetModified(); continue; } /* delete host */ @@ -238,7 +240,7 @@ return true; }); UI::ChangeWidget(`id(`table), `Items, table_items); - Host::modified = true; + Host::SetModified(); continue; } else if(ret == `back) { -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org