Kaydet (Commit) ac5d667e authored tarafından Jack Jansen's avatar Jack Jansen

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.
üst 9cc4fcd6
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment