summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorbfox <bfox>2000-12-11 21:41:45 +0000
committerbfox <bfox>2000-12-11 21:41:45 +0000
commit4484f7ca2566896a54fc61527cf070270485e5d1 (patch)
treef08493b260f38931e21188764b6924aadb95bb1d /iw
parente9a1ae7c952410f8bda4cdafcaa070d73a70951e (diff)
downloadanaconda-4484f7ca2566896a54fc61527cf070270485e5d1.tar.gz
anaconda-4484f7ca2566896a54fc61527cf070270485e5d1.tar.xz
anaconda-4484f7ca2566896a54fc61527cf070270485e5d1.zip
Fixed traceback bug if the user tried to select or unselect all when nothing was in the clist.
Diffstat (limited to 'iw')
-rw-r--r--iw/package_gui.py21
1 files changed, 15 insertions, 6 deletions
diff --git a/iw/package_gui.py b/iw/package_gui.py
index e58f54eba..a9b2f56b2 100644
--- a/iw/package_gui.py
+++ b/iw/package_gui.py
@@ -224,6 +224,7 @@ class IndividualPackageSelectionWindow (InstallWindow):
def select (self, ctree, node, *args):
+# print "select"
self.clear_package_desc ()
self.packageList.freeze ()
self.packageList.clear ()
@@ -270,8 +271,13 @@ class IndividualPackageSelectionWindow (InstallWindow):
self.packageList.column_titles_active ()
+ self.selectAllButton.set_sensitive (TRUE)
+ self.unselectAllButton.set_sensitive (TRUE)
+
except:
# print "Except called"
+ self.selectAllButton.set_sensitive (FALSE)
+ self.unselectAllButton.set_sensitive (FALSE)
pass
self.packageList.thaw ()
@@ -389,13 +395,16 @@ class IndividualPackageSelectionWindow (InstallWindow):
self.totalSizeLabel = GtkLabel(_("Total size: "))
hbox.pack_start(self.totalSizeLabel, FALSE, FALSE, 0)
- selectAllButton = GtkButton(_("Select all in group"))
- hbox.pack_start(selectAllButton, FALSE)
- selectAllButton.connect('clicked', self.select_all)
+ self.selectAllButton = GtkButton(_("Select all in group"))
+ hbox.pack_start(self.selectAllButton, FALSE)
+ self.selectAllButton.connect('clicked', self.select_all)
+
+ self.unselectAllButton = GtkButton(_("Unselect all in group"))
+ hbox.pack_start(self.unselectAllButton, FALSE)
+ self.unselectAllButton.connect('clicked', self.unselect_all)
- unselectAllButton = GtkButton(_("Unselect all in group"))
- hbox.pack_start(unselectAllButton, FALSE)
- unselectAllButton.connect('clicked', self.unselect_all)
+ self.selectAllButton.set_sensitive (FALSE)
+ self.unselectAllButton.set_sensitive (FALSE)
descVBox.pack_start (hbox, FALSE)