4016: Plugin with a BooleanListOption crashes when report_options.xml has fewer entries than expected.

svn: r15481
This commit is contained in:
Doug Blank 2010-05-25 21:10:25 +00:00
parent 2604ee39fa
commit 72eadb0d71

View File

@ -1378,6 +1378,7 @@ class GuiBooleanListOption(gtk.HBox):
for description in option.get_descriptions():
button = gtk.CheckButton(description)
self.__cbutton.append(button)
if counter < len(default):
if default[counter] == 'True':
button.set_active(True)
button.connect("toggled", self.__value_changed)