[yast-commit] r64936 - in /trunk/s390: VERSION package/yast2-s390.changes src/dasd/dialogs.ycp
Author: aschnell Date: Fri Jul 22 14:47:36 2011 New Revision: 64936 URL: http://svn.opensuse.org/viewcvs/yast?rev=64936&view=rev Log: - fixed diag mode setting (bnc #591037) Modified: trunk/s390/VERSION trunk/s390/package/yast2-s390.changes trunk/s390/src/dasd/dialogs.ycp Modified: trunk/s390/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/s390/VERSION?rev=64936&r1=64935&r2=64936&view=diff ============================================================================== --- trunk/s390/VERSION (original) +++ trunk/s390/VERSION Fri Jul 22 14:47:36 2011 @@ -1 +1 @@ -2.21.1 +2.21.2 Modified: trunk/s390/package/yast2-s390.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/s390/package/yast2-s390.changes?rev=64936&r1=64935&r2=64936&view=diff ============================================================================== --- trunk/s390/package/yast2-s390.changes (original) +++ trunk/s390/package/yast2-s390.changes Fri Jul 22 14:47:36 2011 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Fri Jul 22 14:41:14 CEST 2011 - aschnell@suse.de + +- fixed diag mode setting (bnc #591037) +- 2.17.19 + +------------------------------------------------------------------- Tue Jun 21 12:29:58 EDT 2011 - aschnell@suse.de - use ButtonBox for correct button order (bnc #701269) Modified: trunk/s390/src/dasd/dialogs.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/s390/src/dasd/dialogs.ycp?rev=64936&r1=64935&r2=64936&view=diff ============================================================================== --- trunk/s390/src/dasd/dialogs.ycp (original) +++ trunk/s390/src/dasd/dialogs.ycp Fri Jul 22 14:47:36 2011 @@ -311,7 +311,8 @@ * Run the dialog for DASD disks configuration * @return symbol for wizard sequencer */ -define symbol DASDDialog() { +symbol DASDDialog() +{ DisplayDASDDialog (); ReloadDASDDialog (); any ret = nil; @@ -320,8 +321,7 @@ { ret = UI::UserInput(); - integer selected = (integer) - UI::QueryWidget (`id (`table), `CurrentItem); + integer selected = (integer) UI::QueryWidget(`id(`table), `CurrentItem); if (ret == `filter) { ReloadDASDDialog (); @@ -391,17 +391,21 @@ } else if (ret == `diag_on) { - list<integer>to_activate = ListSelectedDASD (); - if (0 == size (to_activate)) + list<integer> selected = ListSelectedDASD(); + if (isempty(selected)) { // error popup message Popup::Message (_("No disk selected.")); ret = nil; continue; } - foreach (integer id, to_activate, ``{ - string channel = DASDController::devices[id,"channel"]:""; + + foreach (integer id, selected, { + string channel = DASDController::devices[id, "channel"]:""; + boolean active = DASDController::devices[id, "resource", "io", 0, "active"]:false; DASDController::diag[channel] = true; + if (active) + DASDController::ActivateDisk(channel, true); }); ReloadDASDDialog (); @@ -411,17 +415,21 @@ } else if (ret == `diag_off) { - list<integer>to_activate = ListSelectedDASD (); - if (0 == size (to_activate)) + list<integer> selected = ListSelectedDASD(); + if (isempty(selected)) { // error popup message Popup::Message (_("No disk selected.")); ret = nil; continue; } - foreach (integer id, to_activate, ``{ - string channel = DASDController::devices[id,"channel"]:""; + + foreach (integer id, selected, { + string channel = DASDController::devices[id, "channel"]:""; + boolean active = DASDController::devices[id, "resource", "io", 0, "active"]:false; DASDController::diag[channel] = false; + if (active) + DASDController::ActivateDisk(channel, false); }); ReloadDASDDialog (); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
aschnell@svn2.opensuse.org