diff options
author | Mike Fulbright <msf@redhat.com> | 2002-07-24 19:14:40 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2002-07-24 19:14:40 +0000 |
commit | ef79ea7dd54e63988cc78cd492fb1bfcabaa15ba (patch) | |
tree | d2cac4340e514e6977c531eaff7556164b5a99bf /iw/package_gui.py | |
parent | d1f8f0ba159d087ab48509e95ef9ba5f9219168e (diff) | |
download | anaconda-ef79ea7dd54e63988cc78cd492fb1bfcabaa15ba.tar.gz anaconda-ef79ea7dd54e63988cc78cd492fb1bfcabaa15ba.tar.xz anaconda-ef79ea7dd54e63988cc78cd492fb1bfcabaa15ba.zip |
fix for bug #69590 - turn off selected button if all optional (and not mandatory needed)
Diffstat (limited to 'iw/package_gui.py')
-rw-r--r-- | iw/package_gui.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/iw/package_gui.py b/iw/package_gui.py index de2a35d69..4b919557c 100644 --- a/iw/package_gui.py +++ b/iw/package_gui.py @@ -750,7 +750,7 @@ class PackageSelectionWindow (InstallWindow): # START OF editDetails # # backup state - (comp, hdrlbl, count) = data + (comp, hdrlbl, countlbl, compcb) = data origpkgselection = {} for pkg in comp.packagesFullInfo().keys(): val = comp.packagesFullInfo()[pkg] @@ -925,9 +925,13 @@ class PackageSelectionWindow (InstallWindow): self.dialog.destroy() self.setSize() - if count: - self.setCompCountLabel(comp, count) - + if countlbl: + self.setCompCountLabel(comp, countlbl) + + (selpkg, totpkg) = self.getStats(comp) + if selpkg < 1: + if compcb: + compcb.set_active(0) return def focusIdleHandler(self, data): @@ -1062,7 +1066,7 @@ class PackageSelectionWindow (InstallWindow): editbutton.add(nlbl) editbutton.set_relief(gtk.RELIEF_NONE) editbutton.connect("clicked", self.editDetails, - (comp, hdrlabel, count)) + (comp, hdrlabel, count, checkButton)) if comp.isSelected(justManual = 1): buttonal.add(editbutton) else: |