[PATCH 5/5] Modify behavior when leaving the reclaim storage dialog (#868903).

Chris Lumens clumens at redhat.com
Mon Oct 22 20:55:21 UTC 2012


I was calling back into the continue method directly and then attempting to
display a dialog from there, which looks like was causing problems with the
main loop.  Instead, just emit the proper signal and let dialogs get called
how they're supposed to.

This makes the following behavior change:  When you click "Reclaim space"
on the reclaim dialog, you will go back to the hub instead of back to one of
the three installation options dialogs.  If you didn't do enough, you will
have to go back into the storage spoke and take further action.
---
 pyanaconda/ui/gui/spokes/storage.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyanaconda/ui/gui/spokes/storage.py b/pyanaconda/ui/gui/spokes/storage.py
index 4ec3d4e..14ea404 100644
--- a/pyanaconda/ui/gui/spokes/storage.py
+++ b/pyanaconda/ui/gui/spokes/storage.py
@@ -709,7 +709,7 @@ class StorageSpoke(NormalSpoke, StorageChecker):
                 # resizeDialog handles okay/cancel on its own, so we can throw
                 # out the return value.
                 self.run_lightbox_dialog(resizeDialog)
-                self.on_continue_clicked(button)
+                self.window.emit("button-clicked")
                 return
 
             self.on_back_clicked(self.window)
-- 
1.7.11.2



More information about the anaconda-patches mailing list