diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2003-11-27 23:19:33 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2003-11-27 23:19:33 (GMT) |
commit | ac5d667e9f1b79b0d0ca6f5c8edd4f02feecd98f (patch) | |
tree | cdd9c93e086001d43577a16421f7419d04d07335 /Mac/Tools | |
parent | 9cc4fcd64912aae9339664f980acfedbc34d3fcd (diff) | |
download | cpython-ac5d667e9f1b79b0d0ca6f5c8edd4f02feecd98f.zip cpython-ac5d667e9f1b79b0d0ca6f5c8edd4f02feecd98f.tar.gz cpython-ac5d667e9f1b79b0d0ca6f5c8edd4f02feecd98f.tar.bz2 |
Fix (workaround, actually) for bug #844676: deselecting "show hidden" can
cause an index error. We now select the first package if this threatens
to happen. Will backport.
Diffstat (limited to 'Mac/Tools')
-rwxr-xr-x | Mac/Tools/IDE/PackageManager.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Mac/Tools/IDE/PackageManager.py b/Mac/Tools/IDE/PackageManager.py index fb482ef..4bd0e62 100755 --- a/Mac/Tools/IDE/PackageManager.py +++ b/Mac/Tools/IDE/PackageManager.py @@ -383,6 +383,8 @@ class PackageBrowser(PimpInterface): self.w.user_button.enable(0) else: sel = sel[0] + if sel >= len(self.packages): + sel = 0 self.w.packagebrowser.setselection([sel]) installed, message = self.getstatus(sel) self.w.installed.set(installed) |