[PATCH] The Unknown page selectors/devices have no root.
David Lehman
dlehman at redhat.com
Mon Oct 15 17:38:16 UTC 2012
---
pyanaconda/ui/gui/spokes/custom.py | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 8b780a3..baa2e34 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -1690,13 +1690,13 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
if not self._current_selector:
return
+ page = self._accordion.currentPage()
+ root_name = page.pageTitle
selector = self._current_selector
- log.info("on_remove_clicked: %s" % selector._root.name)
-
device = self._current_selector._device
- log.debug("removing device '%s' from page %s" % (device, selector._root.name))
+ log.debug("removing device '%s' from page %s" % (device, root_name))
- if selector._root.name == new_install_name:
+ if root_name == new_install_name:
if device.exists:
# This is an existing device that was added to the new page.
# All we want to do is revert any changes to the device and
@@ -1716,14 +1716,14 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
dialog = ConfirmDeleteDialog(self.data)
with enlightbox(self.window, dialog.window):
dialog.refresh(getattr(device.format, "mountpoint", ""),
- device.name, selector._root.name)
+ device.name, root_name)
rc = dialog.run()
if rc == 0:
return
if dialog.deleteAll:
- for dev in selector._root.swaps + selector._root.mounts.values():
+ for dev in [s._device for s in page._members]:
self._destroy_device(dev)
else:
self._destroy_device(device)
--
1.7.7.6
More information about the anaconda-patches
mailing list