diff options
author | Jeremy Katz <katzj@redhat.com> | 2008-02-06 23:28:35 -0500 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2008-02-06 23:52:55 -0500 |
commit | f5297182b3febc9f5a2ed4f333eeb11849570b86 (patch) | |
tree | 4b5f32677712e93cee12aa86221dcd8346d2e1bd /iw | |
parent | 01598a13b2a8603ca8c215b345b899a028f48b67 (diff) | |
download | anaconda-f5297182b3febc9f5a2ed4f333eeb11849570b86.tar.gz anaconda-f5297182b3febc9f5a2ed4f333eeb11849570b86.tar.xz anaconda-f5297182b3febc9f5a2ed4f333eeb11849570b86.zip |
Cancel on escape being pressed
Diffstat (limited to 'iw')
-rw-r--r-- | iw/autopart_type.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/iw/autopart_type.py b/iw/autopart_type.py index a75b888e1..81393cd9b 100644 --- a/iw/autopart_type.py +++ b/iw/autopart_type.py @@ -81,7 +81,7 @@ def whichToResize(partitions, diskset, intf): math.floor(req.size)), req) if req.targetSize is not None: - combo.set_active(i) + combo.set_active_iter(i) found = True if biggest < 0 or req.size > getActive(combo).size: biggest = i @@ -100,7 +100,7 @@ def whichToResize(partitions, diskset, intf): gui.addFrame(dialog) dialog.show_all() rc = dialog.run() - if rc == gtk.RESPONSE_CANCEL: + if rc != gtk.RESPONSE_OK: dialog.destroy() return rc @@ -129,7 +129,7 @@ class PartitionTypeWindow(InstallWindow): else: if val == -2: rc = whichToResize(self.partitions, self.diskset, self.intf) - if rc == gtk.RESPONSE_CANCEL: + if rc != gtk.RESPONSE_OK: raise gui.StayOnScreen # we're not going to delete any partitions in the resize case |