summaryrefslogtreecommitdiffstats
path: root/textw
diff options
context:
space:
mode:
Diffstat (limited to 'textw')
-rw-r--r--textw/partition_text.py20
1 files changed, 12 insertions, 8 deletions
diff --git a/textw/partition_text.py b/textw/partition_text.py
index 74a545427..5d7d5ea22 100644
--- a/textw/partition_text.py
+++ b/textw/partition_text.py
@@ -919,13 +919,17 @@ class AutoPartitionWindow:
bb = ButtonBar(screen, [ TEXT_OK_BUTTON, TEXT_BACK_BUTTON ])
self.g.add(bb, 0, 4, (0,1,0,0))
- rc = self.g.run()
- res = bb.buttonPressed(rc)
+ while 1:
+ rc = self.g.run()
+ res = bb.buttonPressed(rc)
- screen.popWindow()
- if res == TEXT_BACK_CHECK:
- return INSTALL_BACK
+ if res == TEXT_BACK_CHECK:
+ screen.popWindow()
+ return INSTALL_BACK
- partitions.autoClearPartType = typebox.current()
- partitions.autoClearPartDrives = drivelist.getSelection()
- return INSTALL_OK
+ partitions.autoClearPartType = typebox.current()
+ partitions.autoClearPartDrives = drivelist.getSelection()
+
+ if queryAutoPartitionOK(intf, diskset, partitions):
+ screen.popWindow()
+ return INSTALL_OK