diff options
author | Matt Wilson <msw@redhat.com> | 2001-07-02 22:20:46 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-07-02 22:20:46 +0000 |
commit | b98191b76f580a79d34052744c17a5cd6cbe3659 (patch) | |
tree | 10f7a175d67374f4d681dc406e49172c9508c142 | |
parent | 8fd91aa403b11d6055b814a57a78078f9b5a2ebb (diff) | |
download | anaconda-b98191b76f580a79d34052744c17a5cd6cbe3659.tar.gz anaconda-b98191b76f580a79d34052744c17a5cd6cbe3659.tar.xz anaconda-b98191b76f580a79d34052744c17a5cd6cbe3659.zip |
use row data to store the drive since we want to use sorted keys for the list
-rw-r--r-- | iw/partition_gui.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/iw/partition_gui.py b/iw/partition_gui.py index 885d45bd2..1407f320c 100644 --- a/iw/partition_gui.py +++ b/iw/partition_gui.py @@ -330,7 +330,8 @@ def createAllowedDrivesClist(disks, reqdrives): for drive in drives: size = getDeviceSizeMB(disks[drive].dev) str = "%s: %s - %0.0f MB" % (drive, disks[drive].dev.model, size) - driveclist.append((str,)) + row = driveclist.append((str,)) + driveclist.set_row_data(row, drive) if reqdrives: if drive in reqdrives: @@ -838,7 +839,7 @@ class PartitionWindow(InstallWindow): else: allowdrives = [] for i in driveclist.selection: - allowdrives.append(self.diskset.disks.keys()[i]) + allowdrives.append(driveclist.get_row_data(i)) request.size = sizespin.get_value_as_int() request.drive = allowdrives @@ -1204,7 +1205,7 @@ class AutoPartitionWindow(InstallWindow): allowdrives = [] for i in self.driveclist.selection: - allowdrives.append(self.diskset.disks.keys()[i]) + allowdrives.append(self.driveclist.get_row_data(i)) if len(allowdrives) < 1: self.intf.messageWindow(_("Warning"), |