* src/AutoComp.py
Don't build popdown lists if the number of elements exceeds 250. Otherwise, the menus will become unusable, and just consume tons of memory. * src/VersionControl.py Sort revision numbers based on numerical value instead of ASCII value. * src/VersionControl.py Check return values of all subprocesses svn: r1662
This commit is contained in:
parent
3c4d04fdb3
commit
d160f97666
@ -145,10 +145,11 @@ class AutoCombo(AutoCompBase):
|
||||
widget.entry.connect("insert-text",self.insert_text)
|
||||
self.vals = [""]
|
||||
self.inb = 0
|
||||
if len(plist) > 0:
|
||||
if plist and len(plist) < 250:
|
||||
widget.set_popdown_strings(plist)
|
||||
else:
|
||||
widget.set_popdown_strings([""])
|
||||
widget.get_children()[1].hide()
|
||||
|
||||
def setval(self,widget):
|
||||
"""Callback task called on the button release"""
|
||||
@ -165,7 +166,7 @@ class AutoCombo(AutoCompBase):
|
||||
"""
|
||||
self.inb = 1
|
||||
|
||||
if len(self.vals) > 0:
|
||||
if self.vals and len(self.vals) < 250:
|
||||
if self.vals[0] == "":
|
||||
self.entry.set_popdown_strings([self.entry.entry.get_text()])
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user