Author: locilka Date: Thu Jan 15 15:41:42 2009 New Revision: 54654 URL: http://svn.opensuse.org/viewcvs/yast?rev=54654&view=rev Log: One more fix: enabled/disabled buttons according to the content of the table above... Modified: trunk/backup/src/ui.ycp Modified: trunk/backup/src/ui.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/backup/src/ui.ycp?rev=54654&r1=54653&r2=54654&view=diff ============================================================================== --- trunk/backup/src/ui.ycp (original) +++ trunk/backup/src/ui.ycp Thu Jan 15 15:41:42 2009 @@ -3396,6 +3396,11 @@ if (size (Backup::backup_helper_scripts) > selected_item) { UI::ChangeWidget (`id ("table_of_scripts"), `CurrentItem, selected_item); } + + boolean button_state = (size (items) > 0); + + UI::ChangeWidget (`id (`delete_script), `Enabled, button_state); + UI::ChangeWidget (`id (`edit_script), `Enabled, button_state); } void InitScriptContent () { -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org