Save the partition type selection when moving back (#635778)
In order to properly rescan the storage systems the GUI partition
type selection should only apply to dialogs AFTER autopart. Save
the selection when moving back and recall when moving forward again.
# *sigh* we still need to be able to write this out
self.xdriver = None
diff --git a/pyanaconda/iw/autopart_type.py b/pyanaconda/iw/autopart_type.py
index fee55ba..e8af347 100644
--- a/pyanaconda/iw/autopart_type.py
+++ b/pyanaconda/iw/autopart_type.py
@@ -195,6 +195,12 @@ class PartitionTypeWindow(InstallWindow):
return None
+ def getPrev(self):
+ # Save the user's selection and restore system selection
+ if self.storage.clearPartType is not None:
+ self.anaconda.clearPartTypeSelection = self.storage.clearPartType
+ self.storage.clearPartType = self.anaconda.clearPartTypeSystem
+
def typeChanged(self, *args):
if self.buttonGroup.getCurrent() == "custom":
if not self.prevrev:
@@ -217,6 +223,12 @@ class PartitionTypeWindow(InstallWindow):
self.intf = anaconda.intf
self.dispatch = anaconda.dispatch
+ if self.anaconda.dir == DISPATCH_FORWARD:
+ # Save system's partition type setting and restore user's
+ self.anaconda.clearPartTypeSystem = self.storage.clearPartType
+ if self.anaconda.clearPartTypeSelection is not None:
+ self.storage.clearPartType = self.anaconda.clearPartTypeSelection
+
(self.xml, vbox) = gui.getGladeWidget("autopart.glade", "parttypeTable")
self.encryptButton = self.xml.get_widget("encryptButton")
self.reviewButton = self.xml.get_widget("reviewButton")
--
1.7.2.3
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list