Author: jsuchome Date: Fri Feb 11 16:17:31 2011 New Revision: 63406 URL: http://svn.opensuse.org/viewcvs/yast?rev=63406&view=rev Log: check current item even when clicking elsewhere Modified: branches/tmp/jsuchome/snapper/src/dialogs.ycp Modified: branches/tmp/jsuchome/snapper/src/dialogs.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/jsuchome/snapper/src/dialogs.ycp?rev=63406&r1=63405&r2=63406&view=diff ============================================================================== --- branches/tmp/jsuchome/snapper/src/dialogs.ycp (original) +++ branches/tmp/jsuchome/snapper/src/dialogs.ycp Fri Feb 11 16:17:31 2011 @@ -460,12 +460,12 @@ map event = UI::WaitForEvent (); ret = (symbol) event["ID"]:nil; + current_file = (string) UI::QueryWidget (`id(`tree),`CurrentItem); + if (current_file == nil) current_file = ""; + // events in tree if (ret == `tree) { - current_file = (string) UI::QueryWidget (`id(`tree),`CurrentItem); - if (current_file == nil) current_file = ""; - set_entry_term (); UI::NormalCursor (); if (textmode) -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org