* src/ListModel.py (find): Prevent traceback if the entry is not found.
svn: r2257
This commit is contained in:
parent
0f52350340
commit
97d21e3388
@ -1,3 +1,6 @@
|
|||||||
|
2003-10-14 Alex Roitman <shura@alex.neuro.umn.edu>
|
||||||
|
* src/ListModel.py (find): Prevent traceback if the entry is not found.
|
||||||
|
|
||||||
2003-10-14 Don Allingham <dallingham@users.sourceforge.net>
|
2003-10-14 Don Allingham <dallingham@users.sourceforge.net>
|
||||||
* src/data/templates/Makefile.am: install blue_edge.tpkg
|
* src/data/templates/Makefile.am: install blue_edge.tpkg
|
||||||
* src/docgen/HtmlDoc.py: report error correctly on missing
|
* src/docgen/HtmlDoc.py: report error correctly on missing
|
||||||
|
@ -247,8 +247,9 @@ class ListModel:
|
|||||||
return 0
|
return 0
|
||||||
|
|
||||||
def find(self,info):
|
def find(self,info):
|
||||||
iter = self.idmap[info]
|
if info in self.idmap.keys():
|
||||||
self.selection.select_iter(iter)
|
iter = self.idmap[info]
|
||||||
|
self.selection.select_iter(iter)
|
||||||
|
|
||||||
def cleanup(self):
|
def cleanup(self):
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user