[yast-commit] r60357 - in /trunk/storage/storage/src/include: ep-lvm-lib.ycp ep-raid-lib.ycp
Author: aschnell Date: Thu Jan 14 12:26:28 2010 New Revision: 60357 URL: http://svn.opensuse.org/viewcvs/yast?rev=60357&view=rev Log: - improved focus handling after deleting MDs and VGs Modified: trunk/storage/storage/src/include/ep-lvm-lib.ycp trunk/storage/storage/src/include/ep-raid-lib.ycp Modified: trunk/storage/storage/src/include/ep-lvm-lib.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/ep-lvm-lib.ycp?rev=60357&r1=60356&r2=60357&view=diff ============================================================================== --- trunk/storage/storage/src/include/ep-lvm-lib.ycp (original) +++ trunk/storage/storage/src/include/ep-lvm-lib.ycp Thu Jan 14 12:26:28 2010 @@ -155,8 +155,12 @@ if (Storage::DeleteLvmVg(vgname)) { + any new_focus = nil; + if (UI::QueryWidget(`tree, `CurrentItem) == device) + new_focus = `lvm; + UpdateMainStatus(); - UpdateNavigationTree(`lvm); + UpdateNavigationTree(new_focus); TreePanel::Create(); ret = true; } Modified: trunk/storage/storage/src/include/ep-raid-lib.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/ep-raid-lib.ycp?rev=60357&r1=60356&r2=60357&view=diff ============================================================================== --- trunk/storage/storage/src/include/ep-raid-lib.ycp (original) +++ trunk/storage/storage/src/include/ep-raid-lib.ycp Thu Jan 14 12:26:28 2010 @@ -186,8 +186,12 @@ if (EpDeleteDevice(device)) { + any new_focus = nil; + if (UI::QueryWidget(`tree, `CurrentItem) == device) + new_focus = `md; + UpdateMainStatus(); - UpdateNavigationTree(`md); + UpdateNavigationTree(new_focus); TreePanel::Create(); } } -- 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