mirror of
https://github.com/python/cpython.git
synced 2025-09-15 21:26:04 +00:00
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.
This commit is contained in:
parent
9cc4fcd649
commit
ac5d667e9f
1 changed files with 2 additions and 0 deletions
|
@ -383,6 +383,8 @@ class PackageBrowser(PimpInterface):
|
||||||
self.w.user_button.enable(0)
|
self.w.user_button.enable(0)
|
||||||
else:
|
else:
|
||||||
sel = sel[0]
|
sel = sel[0]
|
||||||
|
if sel >= len(self.packages):
|
||||||
|
sel = 0
|
||||||
self.w.packagebrowser.setselection([sel])
|
self.w.packagebrowser.setselection([sel])
|
||||||
installed, message = self.getstatus(sel)
|
installed, message = self.getstatus(sel)
|
||||||
self.w.installed.set(installed)
|
self.w.installed.set(installed)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue