4016: Plugin with a BooleanListOption crashes when report_options.xml has fewer entries than expected.
svn: r15481
This commit is contained in:
parent
2604ee39fa
commit
72eadb0d71
@ -1378,6 +1378,7 @@ class GuiBooleanListOption(gtk.HBox):
|
|||||||
for description in option.get_descriptions():
|
for description in option.get_descriptions():
|
||||||
button = gtk.CheckButton(description)
|
button = gtk.CheckButton(description)
|
||||||
self.__cbutton.append(button)
|
self.__cbutton.append(button)
|
||||||
|
if counter < len(default):
|
||||||
if default[counter] == 'True':
|
if default[counter] == 'True':
|
||||||
button.set_active(True)
|
button.set_active(True)
|
||||||
button.connect("toggled", self.__value_changed)
|
button.connect("toggled", self.__value_changed)
|
||||||
|
Loading…
Reference in New Issue
Block a user