[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH] If clearpart is set in ks, make combobox in parttype UI insensitive.



Follow-up to commit 93fd07cd4cb46dad0d57bf216e603c8256751480.  Tries to be more
sane for one particular case concerning clearpart ks command:  clearpart is set
in ks and "Create custom layout" is selected in parttype UI step. Because of ks
setting, storage initialization doesn't discover devices (RAID, LVM) on
partitions that are to be cleared and therefore they are not present in custom
partition dialog.

After going to partition dialog and back, all devices will be discovered during
storage reset and user can choose type of layout at his will again.
---
 iw/autopart_type.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/iw/autopart_type.py b/iw/autopart_type.py
index f192d6a..c0158f8 100644
--- a/iw/autopart_type.py
+++ b/iw/autopart_type.py
@@ -449,6 +449,7 @@ class PartitionTypeWindow(InstallWindow):
             preselected = CLEARPART_TYPE_LINUX
         else:
             preselected = self.storage.clearPartType 
+            self.combo.set_sensitive(False)
 
         for (txt, val) in opts:
             iter = store.append(None)
-- 
1.6.0.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]