[PATCH 7/7] Remove an extra call to page clicked handler from refresh. (#959722)
David Lehman
dlehman at redhat.com
Wed May 15 18:39:45 UTC 2013
This was causing unnecessary churn in addition to hiding error messages.
---
pyanaconda/ui/gui/spokes/custom.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 5325c9b..6ee8ff5 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -959,7 +959,7 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
self._initialized = True
firstPage = self._accordion.allPages[0]
self._accordion.expandPage(firstPage.pageTitle)
- self.on_page_clicked(firstPage, mountpointToShow=mountpointToShow)
+ self._show_mountpoint(page=firstPage, mountpoint=mountpointToShow)
self._applyButton.set_sensitive(False)
@@ -2349,7 +2349,8 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
return
# Take care of the previously chosen selector.
- if self._current_selector and self._initialized:
+ if self._current_selector and self._initialized and \
+ self._current_selector != selector:
self._save_current_selector()
log.debug("new selector: %s" % selector._device)
--
1.8.1.4
More information about the anaconda-patches
mailing list