diff options
author | Jeremy Katz <katzj@redhat.com> | 2001-08-01 15:51:26 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2001-08-01 15:51:26 +0000 |
commit | 98d9f6cf61e60e992127217b66427082bc94ea81 (patch) | |
tree | 82d9840f7f62d6e1f9599d632e6f851403ce2045 /textw/partition_text.py | |
parent | 7c377d17e659961e62172832d03956f32a302f8f (diff) | |
download | anaconda-98d9f6cf61e60e992127217b66427082bc94ea81.tar.gz anaconda-98d9f6cf61e60e992127217b66427082bc94ea81.tar.xz anaconda-98d9f6cf61e60e992127217b66427082bc94ea81.zip |
newt gets confused if you set a label more than once before running the dialog (50332)
Diffstat (limited to 'textw/partition_text.py')
-rw-r--r-- | textw/partition_text.py | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/textw/partition_text.py b/textw/partition_text.py index 0a34a2857..e7ed4e095 100644 --- a/textw/partition_text.py +++ b/textw/partition_text.py @@ -599,7 +599,12 @@ class PartitionWindow: srow = srow + 1 tmpLbl = Label(_("Filesystem Option:")) subgrid.setField(tmpLbl, 0, srow, (0,0,0,1), anchorLeft = 1) - fsoptLbl = Label("") + if origrequest.format: + fsoptLbl = Label(_("Format as %s") % (newfstype.getName())) + elif origrequest.migrate: + fsoptLbl = Label(_("Migrate to %s") %(newfstype.getName())) + else: + fsoptLbl = Label(_("Leave unchanged")) subgrid.setField(fsoptLbl, 1, srow, (0,0,0,1), anchorLeft = 1) poplevel.add(subgrid, 0, row, (0,1,0,0)) @@ -617,18 +622,10 @@ class PartitionWindow: popbb = ButtonBar(self.screen, (TEXT_OK_BUTTON, (_("Filesystem Options"), "fsopts"), TEXT_CANCEL_BUTTON)) - poplevel.add(popbb, 0, row, (0,1,0,0), growx = 1) + poplevel.add(popbb, 0, row, (0,1,0,0), growx = 1) while 1: - if fsoptLbl: - if format: - fsoptLbl.setText(_("Format as %s") % (newfstype.getName())) - elif migrate: - fsoptLbl.setText(_("Migrate to %s") %(newfstype.getName())) - else: - fsoptLbl.setText(_("Leave unchanged")) - res = poplevel.run() # if the user hit cancel, do nothing @@ -640,6 +637,15 @@ class PartitionWindow: (format, migrate, newfstype, badblocks) = self.fsOptionsDialog(origrequest, format, migrate, newfstype, badblocks) self.fstypeSet((newfstype, self.mount)) type.setText(newfstype.getName()) + + if fsoptLbl: + if format: + fsoptLbl.setText(_("Format as %s") % (newfstype.getName())) + elif migrate: + fsoptLbl.setText(_("Migrate to %s") %(newfstype.getName())) + else: + fsoptLbl.setText(_("Leave unchanged")) + continue if origrequest.type == REQUEST_NEW: |