summaryrefslogtreecommitdiffstats
path: root/pyanaconda
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2012-08-17 16:23:16 -0500
committerDavid Lehman <dlehman@redhat.com>2012-08-20 13:19:15 -0500
commit6059a4b42ca549c419fe8f44abc18224fa9cadc5 (patch)
treedcad7bf4b1f70ff4f3fa1945dac9d86b2c4ed0fc /pyanaconda
parent636d396ee9d4e98f44f21788babb327227f9e8b3 (diff)
downloadanaconda-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.py5
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