[Python-checkins] python/dist/src/Mac/Tools/IDE PackageManager.py,
1.14.4.2, 1.14.4.3
jackjansen at users.sourceforge.net
jackjansen at users.sourceforge.net
Thu Nov 27 18:20:08 EST 2003
Update of /cvsroot/python/python/dist/src/Mac/Tools/IDE
In directory sc8-pr-cvs1:/tmp/cvs-serv9606
Modified Files:
Tag: release23-maint
PackageManager.py
Log Message:
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. Backport of 1.17.
Index: PackageManager.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Tools/IDE/PackageManager.py,v
retrieving revision 1.14.4.2
retrieving revision 1.14.4.3
diff -C2 -d -r1.14.4.2 -r1.14.4.3
*** PackageManager.py 27 Nov 2003 23:12:37 -0000 1.14.4.2
--- PackageManager.py 27 Nov 2003 23:20:06 -0000 1.14.4.3
***************
*** 384,387 ****
--- 384,389 ----
else:
sel = sel[0]
+ if sel >= len(self.packages):
+ sel = 0
self.w.packagebrowser.setselection([sel])
installed, message = self.getstatus(sel)
More information about the Python-checkins
mailing list