[PATCH] Check the right button when saving changes in the Custom spoke (#1090786)

Vratislav Podzimek vpodzime at redhat.com
Mon Apr 28 09:33:01 UTC 2014


When saving changes we should check if the "Update settings" button is sensitive
(i.e. any change to be saved) not the add button.

Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
 pyanaconda/ui/gui/spokes/custom.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index cb3a2de..83a2d1c 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -836,7 +836,7 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
         # only call _save_right_side if on the right page and some changes need
         # to be saved (sensitivity of the Update Settings button reflects that)
         if self._partitionsNotebook.get_current_page() != NOTEBOOK_DETAILS_PAGE or \
-           not self._addButton.get_sensitive():
+           not self._applyButton.get_sensitive():
             return
 
         device = selector.device
-- 
1.9.0



More information about the anaconda-patches mailing list