diff options
| author | David Lehman <dlehman@redhat.com> | 2012-08-17 16:23:16 -0500 |
|---|---|---|
| committer | David Lehman <dlehman@redhat.com> | 2012-08-20 13:19:15 -0500 |
| commit | 6059a4b42ca549c419fe8f44abc18224fa9cadc5 (patch) | |
| tree | dcad7bf4b1f70ff4f3fa1945dac9d86b2c4ed0fc /pyanaconda | |
| parent | 636d396ee9d4e98f44f21788babb327227f9e8b3 (diff) | |
| download | anaconda-6059a4b42ca549c419fe8f44abc18224fa9cadc5.tar.gz anaconda-6059a4b42ca549c419fe8f44abc18224fa9cadc5.tar.xz anaconda-6059a4b42ca549c419fe8f44abc18224fa9cadc5.zip | |
Use correct device instance when updating selector w/ new device.
Diffstat (limited to 'pyanaconda')
| -rw-r--r-- | pyanaconda/ui/gui/spokes/custom.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py index 45865f16d..5c5fefb01 100644 --- a/pyanaconda/ui/gui/spokes/custom.py +++ b/pyanaconda/ui/gui/spokes/custom.py @@ -590,7 +590,10 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker): # update the selector with the new device and its size selector._device = self.__storage.devicetree.getDeviceByID(max_id) - selector.props.size = str(Size(spec="%f MB" % device.size)).upper() + selector.props.size = str(Size(spec="%f MB" % selector._device.size)).upper() + + # TODO: if btrfs, also update sizes of other subvols' selectors + self._updateSpaceDisplay() return |
