summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-08-24 22:02:18 +0000
committerJeremy Katz <katzj@redhat.com>2001-08-24 22:02:18 +0000
commit1e16f4a1256ff1ca146f1ce46b11d3c25fec61ef (patch)
tree992aa8f67528fe0d055049e82393c4933312bf73 /iw
parent042b20a99dc21e415c7869e20df5df4b077afafe (diff)
downloadanaconda-1e16f4a1256ff1ca146f1ce46b11d3c25fec61ef.tar.gz
anaconda-1e16f4a1256ff1ca146f1ce46b11d3c25fec61ef.tar.xz
anaconda-1e16f4a1256ff1ca146f1ce46b11d3c25fec61ef.zip
badblocks should only be active if you've selected to format
Diffstat (limited to 'iw')
-rw-r--r--iw/partition_gui.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/iw/partition_gui.py b/iw/partition_gui.py
index 0ae181bd8..4e0ca4e93 100644
--- a/iw/partition_gui.py
+++ b/iw/partition_gui.py
@@ -773,7 +773,7 @@ class PartitionWindow(InstallWindow):
setMntPtComboStateFromType(ofstype, mntptcombo)
def noformatCB(widget, badblocks):
- badblocks.set_sensitive(not widget.get_active())
+ badblocks.set_sensitive(widget.get_active())
def sizespinchangedCB(widget, fillmaxszsb):
size = widget.get_value_as_int()
@@ -1056,7 +1056,7 @@ class PartitionWindow(InstallWindow):
badblocks = GtkCheckButton(_("Check for bad blocks?"))
badblocks.set_active(0)
maintable.attach(badblocks, 0, 1, row, row + 1)
- noformatrb.connect("toggled", noformatCB, badblocks)
+ formatrb.connect("toggled", noformatCB, badblocks)
noformatCB(noformatrb, badblocks)
if origrequest.badblocks:
badblocks.set_active(1)