[yast-commit] r56020 - /branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/widgets_i386.ycp
Author: jreidinger
Date: Mon Mar 9 15:37:00 2009
New Revision: 56020
URL: http://svn.opensuse.org/viewcvs/yast?rev=56020&view=rev
Log:
improve device map widget
Modified:
branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/widgets_i386.ycp
Modified: branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/widgets_i386.ycp
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/widgets_i386.ycp?rev=56020&r1=56019&r2=56020&view=diff
==============================================================================
--- branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/widgets_i386.ycp (original)
+++ branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/widgets_i386.ycp Mon Mar 9 15:37:00 2009
@@ -250,6 +250,14 @@
}
}
+boolean ValidateDiskOrder(string key, map event) {
+ list<term> disksOrder = (list<term>)UI::QueryWidget(`id(`disks), `Items);
+ if (size(disksOrder)>0)
+ return true;
+ Popup::Warning(_("Device map must contain at least one device"));
+ return false;
+}
+
map
participants (1)
-
jreidinger@svn.opensuse.org