Author: ug
Date: Mon Jan 14 15:06:43 2008
New Revision: 43580
URL: http://svn.opensuse.org/viewcvs/yast?rev=43580&view=rev
Log:
default for missing fixed
Modified:
trunk/autoinstallation/package/autoyast2.changes
trunk/autoinstallation/src/dialogs/ask.ycp
Modified: trunk/autoinstallation/package/autoyast2.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/autoinstallation/package/autoyast2.changes?rev=43580&r1=43579&r2=43580&view=diff
==============================================================================
--- trunk/autoinstallation/package/autoyast2.changes (original)
+++ trunk/autoinstallation/package/autoyast2.changes Mon Jan 14 15:06:43 2008
@@ -1,4 +1,9 @@
-------------------------------------------------------------------
+Mon Jan 14 15:06:13 CET 2008 - ug@suse.de
+
+- default for missing fixed
+
+-------------------------------------------------------------------
Fri Jan 11 10:42:42 CET 2008 - ug@suse.de
- Documentation update
Modified: trunk/autoinstallation/src/dialogs/ask.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/autoinstallation/src/dialogs/ask.ycp?rev=43580&r1=43579&r2=43580&view=diff
==============================================================================
--- trunk/autoinstallation/src/dialogs/ask.ycp (original)
+++ trunk/autoinstallation/src/dialogs/ask.ycp Mon Jan 14 15:06:43 2008
@@ -40,12 +40,14 @@
term dialog_term = `VBox();
term help_term = `Empty();
term title_term = `Empty();
+ integer element_cnt = 0;
foreach( map ask, (list<map>)dialogs[dialog_nr]:[], ``{
string pathStr = ask["path"]:"";
string type = ask["type"]:"";
string question = ask["question"]:pathStr;
string frametitle = ask["frametitle"]:"";
- string entry_id = sformat("%1_%2",dialog_nr, ask["element"]:0);
+ string entry_id = sformat("%1_%2",dialog_nr, ask["element"]:element_cnt);
+ element_cnt = element_cnt + 1;
list< map > s = ask["selection"]:[];
helptext = helptext + ask["help"]:"";
title = ask["title"]:"";
@@ -138,11 +140,13 @@
any ret = UI::UserInput();
if( ret == `ok ) {
integer runAgain = 0;
+ integer element_cnt = 0;
foreach( map ask, (list<map>)dialogs[dialog_nr]:[], ``{
list<string> position = splitstring( ask["path"]:"", "," );
string file = ask["file"]:"";
map script = ask["script"]:$[];
- string entry_id = sformat("%1_%2",dialog_nr, ask["element"]:0);
+ string entry_id = sformat("%1_%2",dialog_nr, ask["element"]:element_cnt);
+ element_cnt = element_cnt + 1;
any val = UI::QueryWidget(`id(entry_id), `Value);
if( ask["type"]:"string" == "integer" ) {
val = tointeger((string)val);
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org