[yast-commit] r55210 - in /trunk/storage: ./ package/ storage/src/include/ storage/src/modules/
Author: aschnell
Date: Tue Feb 3 16:06:37 2009
New Revision: 55210
URL: http://svn.opensuse.org/viewcvs/yast?rev=55210&view=rev
Log:
- select 'previous' device in tables after deleting devices (bnc #465138)
Modified:
trunk/storage/VERSION
trunk/storage/package/yast2-storage.changes
trunk/storage/storage/src/include/ep-hd-lib.ycp
trunk/storage/storage/src/include/ep-hd.ycp
trunk/storage/storage/src/include/ep-lib.ycp
trunk/storage/storage/src/include/ep-lvm-lib.ycp
trunk/storage/storage/src/include/ep-lvm.ycp
trunk/storage/storage/src/modules/Storage.ycp
Modified: trunk/storage/VERSION
URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/VERSION?rev=55210&r1=55209&r2=55210&view=diff
==============================================================================
--- trunk/storage/VERSION (original)
+++ trunk/storage/VERSION Tue Feb 3 16:06:37 2009
@@ -1 +1 @@
-2.18.3
+2.18.4
Modified: trunk/storage/package/yast2-storage.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/package/yast2-storage.changes?rev=55210&r1=55209&r2=55210&view=diff
==============================================================================
--- trunk/storage/package/yast2-storage.changes (original)
+++ trunk/storage/package/yast2-storage.changes Tue Feb 3 16:06:37 2009
@@ -1,4 +1,11 @@
-------------------------------------------------------------------
+Tue Feb 03 16:05:21 CET 2009 - aschnell@suse.de
+
+- select 'previous' device in tables after deleting devices (bnc
+ #465138)
+- 2.18.4
+
+-------------------------------------------------------------------
Thu Jan 29 15:22:35 CET 2009 - aschnell@suse.de
- changed method to disable automounter (since "overnight" GNOME
Modified: trunk/storage/storage/src/include/ep-hd-lib.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/ep-hd-lib.ycp?rev=55210&r1=55209&r2=55210&view=diff
==============================================================================
--- trunk/storage/storage/src/include/ep-hd-lib.ycp (original)
+++ trunk/storage/storage/src/include/ep-hd-lib.ycp Tue Feb 3 16:06:37 2009
@@ -158,7 +158,7 @@
if (size(ret) == 0)
{
// error popup
- Popup::Error(sformat(_("It is not possible to create a partition on %1."),
+ Popup::Error(sformat(_("It is not possible to create a partition on %1."),
disk_device));
}
@@ -311,7 +311,7 @@
}
- void EpDeletePartition(string device)
+ void EpDeletePartition(string device, symbol context)
{
if (device == nil)
{
@@ -321,12 +321,26 @@
}
string parent = ParentDevice(device);
+ string next = NextDeviceAfterDelete(device);
if (EpDeleteDevice(device))
{
UpdateMainStatus();
- UpdateNavigationTree(parent);
- TreePanel::Create();
+
+ switch (context)
+ {
+ case `table:
+ UpdateNavigationTree(nil);
+ TreePanel::Create();
+ if (!isempty(next))
+ UI::ChangeWidget(`id(`table), `CurrentItem, next);
+ break;
+
+ case `overview:
+ UpdateNavigationTree(parent);
+ TreePanel::Create();
+ break;
+ }
}
}
Modified: trunk/storage/storage/src/include/ep-hd.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/ep-hd.ycp?rev=55210&r1=55209&r2=55210&view=diff
==============================================================================
--- trunk/storage/storage/src/include/ep-hd.ycp (original)
+++ trunk/storage/storage/src/include/ep-hd.ycp Tue Feb 3 16:06:37 2009
@@ -344,7 +344,7 @@
break;
case `delete:
- EpDeletePartition(part_device);
+ EpDeletePartition(part_device, `table);
break;
case `create_partition_table:
@@ -489,7 +489,7 @@
break;
case `delete:
- EpDeletePartition(part_device);
+ EpDeletePartition(part_device, `overview);
break;
}
UI::SetFocus(`id(`text));
Modified: trunk/storage/storage/src/include/ep-lib.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/ep-lib.ycp?rev=55210&r1=55209&r2=55210&view=diff
==============================================================================
--- trunk/storage/storage/src/include/ep-lib.ycp (original)
+++ trunk/storage/storage/src/include/ep-lib.ycp Tue Feb 3 16:06:37 2009
@@ -20,6 +20,9 @@
}
+ /**
+ * Must be called before removing device.
+ */
string ParentDevice(string device)
{
map
participants (1)
-
aschnell@svn.opensuse.org