[PATCH 2/2] Toggle environment with a busied cursor
Vratislav Podzimek
vpodzime at redhat.com
Tue May 7 11:50:09 UTC 2013
It sometimes takes a while and the GUI may seem hanged.
Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
pyanaconda/ui/gui/spokes/software.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/software.py b/pyanaconda/ui/gui/spokes/software.py
index f817d88..e3d1efe 100644
--- a/pyanaconda/ui/gui/spokes/software.py
+++ b/pyanaconda/ui/gui/spokes/software.py
@@ -31,7 +31,7 @@ from pyanaconda import constants
from pyanaconda.ui.communication import hubQ
from pyanaconda.ui.gui.spokes import NormalSpoke
from pyanaconda.ui.gui.spokes.lib.detailederror import DetailedErrorDialog
-from pyanaconda.ui.gui.utils import enlightbox, gtk_action_wait
+from pyanaconda.ui.gui.utils import enlightbox, gtk_action_wait, busied_cursor
from pyanaconda.ui.gui.categories.software import SoftwareCategory
from pykickstart.parser import Group
@@ -349,8 +349,9 @@ class SoftwareSelectionSpoke(NormalSpoke):
return
# Only do something if the row's not previously been selected.
- if not model[itr][0]:
- self.on_environment_toggled(None, model.get_path(itr))
+ with busied_cursor():
+ if not model[itr][0]:
+ self.on_environment_toggled(None, model.get_path(itr))
def on_addon_toggled(self, renderer, path):
selected = not self._addonStore[path][0]
--
1.7.11.7
More information about the anaconda-patches
mailing list