[Python-checkins] python/dist/src/Mac/Tools/IDE PackageManager.py, 1.16, 1.17

jackjansen at users.sourceforge.net jackjansen at users.sourceforge.net
Thu Nov 27 18:19:36 EST 2003


Update of /cvsroot/python/python/dist/src/Mac/Tools/IDE
In directory sc8-pr-cvs1:/tmp/cvs-serv9343

Modified Files:
	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. Will backport.


Index: PackageManager.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Tools/IDE/PackageManager.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** PackageManager.py	27 Nov 2003 23:12:17 -0000	1.16
--- PackageManager.py	27 Nov 2003 23:19:33 -0000	1.17
***************
*** 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