diff options
author | David Lehman <dlehman@redhat.com> | 2012-10-08 16:51:50 -0500 |
---|---|---|
committer | David Lehman <dlehman@redhat.com> | 2012-10-11 12:19:00 -0500 |
commit | a9ff7890415c78c3f8c1351a0e979cb09bff0d33 (patch) | |
tree | ab6564c021b37cdf7787626d2e46bb54300f5348 | |
parent | 1b0dc46f0da130a46c4299afd58c9065b89a1b61 (diff) | |
download | anaconda-a9ff7890415c78c3f8c1351a0e979cb09bff0d33.tar.gz anaconda-a9ff7890415c78c3f8c1351a0e979cb09bff0d33.tar.xz anaconda-a9ff7890415c78c3f8c1351a0e979cb09bff0d33.zip |
Don't set mountpoints of "(null)" in mountpoint selectors.
-rw-r--r-- | pyanaconda/ui/gui/spokes/custom.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py index 15d01a953..2c9df369f 100644 --- a/pyanaconda/ui/gui/spokes/custom.py +++ b/pyanaconda/ui/gui/spokes/custom.py @@ -996,7 +996,8 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker): # you can't change the type of an existing device, so we # don't need to concern ourselves with adding a new # selector to the new page - selector.props.mountpoint = mountpoint + selector.props.mountpoint = (mountpoint or + selector._device.format.name) selector.props.name = (self._mountpointName(mountpoint) or selector._device.format.name) @@ -1112,7 +1113,8 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker): self.window.show_all() else: if old_mountpoint: - selector.props.mountpoint = mountpoint + selector.props.mountpoint = (mountpoint or + selector._device.format.name) selector.props.name = (self._mountpointName(mountpoint) or selector._device.format.name) else: |