Author: aschnell Date: Thu May 6 11:14:43 2010 New Revision: 61952 URL: http://svn.opensuse.org/viewcvs/yast?rev=61952&view=rev Log: - shorted code Modified: trunk/storage/storage/src/modules/StorageSettings.ycp Modified: trunk/storage/storage/src/modules/StorageSettings.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/modules/StorageSettings.ycp?rev=61952&r1=61951&r2=61952&view=diff ============================================================================== --- trunk/storage/storage/src/modules/StorageSettings.ycp (original) +++ trunk/storage/storage/src/modules/StorageSettings.ycp Thu May 6 11:14:43 2010 @@ -24,6 +24,7 @@ boolean modified = false; + global boolean GetModified() { return modified; @@ -154,7 +155,7 @@ ]; return HTML::List(tmp); - } + } global void Save() @@ -187,16 +188,7 @@ if (true) { - string tmp = "optimal"; - switch( Storage::GetPartitionAlignment() ) - { - case `align_cylinder: - tmp = "cylinder"; - break; - default: - tmp = "optimal"; - break; - } + string tmp = substring(tostring(Storage::GetPartitionAlignment()), 7); SCR::Write(.sysconfig.storage.PARTITION_ALIGN, tmp); } } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org