Author: aschnell Date: Fri Aug 8 10:52:33 2008 New Revision: 49858 URL: http://svn.opensuse.org/viewcvs/yast?rev=49858&view=rev Log: - set PartMode Modified: trunk/storage/storage/src/include/ep-main.ycp Modified: trunk/storage/storage/src/include/ep-main.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/ep-main.ycp?rev=49858&r1=49857&r2=49858&view=diff ============================================================================== --- trunk/storage/storage/src/include/ep-main.ycp (original) +++ trunk/storage/storage/src/include/ep-main.ycp Fri Aug 8 10:52:33 2008 @@ -61,7 +61,7 @@ UI::ChangeWidget(`id(`table), `CurrentItem, device); } - + include "partitioning/icons.ycp"; include "partitioning/ep-lib.ycp"; @@ -318,15 +318,29 @@ TreePanel::Destroy(); - if (widget == `back || widget == `abort) - { - Storage::RestoreTargetBackup("expert-partitioner"); - } - else + switch (widget) { - Storage::DisposeTargetBackup("expert-partitioner"); + case `back: + case `abort: + + if (Storage::GetPartMode() == "NORMAL") + Storage::SetPartMode("CUSTOM"); + + break; + + case `next: + + if (!Storage::EqualBackupStates("expert-partitioner", "", true)) + { + Storage::SetPartMode("CUSTOM"); + Storage::UpdateChangeTime(); + } + + break; } + Storage::DisposeTargetBackup("expert-partitioner"); + return widget; } } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org