[yast-commit] r62193 - /trunk/storage/storage/src/inst_disk_proposal.ycp

Author: aschnell Date: Wed Jul 7 15:19:50 2010 New Revision: 62193 URL: http://svn.opensuse.org/viewcvs/yast?rev=62193&view=rev Log: - use switch statement Modified: trunk/storage/storage/src/inst_disk_proposal.ycp Modified: trunk/storage/storage/src/inst_disk_proposal.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/inst_disk_pro... ============================================================================== --- trunk/storage/storage/src/inst_disk_proposal.ycp (original) +++ trunk/storage/storage/src/inst_disk_proposal.ycp Wed Jul 7 15:19:50 2010 @@ -324,16 +324,21 @@ UI::ChangeWidget( `id("prop_mode"), `CurrentButton, old_mode ); } } - else if( ret==`modify || ret==`detailed ) + else if (contains([ `modify, `detailed ], ret)) { Storage::SetPartProposalFirst( false ); Storage::SetPartProposalActive( false ); - if( ret==`modify ) + + switch (ret) + { + case `modify: { target_is = "PROP_MODIFY"; Storage::SetPartProposalMode( "modify" ); } - else + break; + + case `detailed: { if( Storage::GetPartMode()!="CUSTOM" ) { @@ -346,6 +351,9 @@ Storage::SetPartDisk( "" ); Storage::SetPartProposalMode( "detailed" ); } + break; + } + Storage::SetPartMode( target_is ); execSubscreens( ret==`detailed ); changes = Storage::ChangeText(); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
aschnell@svn.opensuse.org