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,8 +1378,9 @@ 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 default[counter] == 'True':
|
if counter < len(default):
|
||||||
button.set_active(True)
|
if default[counter] == 'True':
|
||||||
|
button.set_active(True)
|
||||||
button.connect("toggled", self.__value_changed)
|
button.connect("toggled", self.__value_changed)
|
||||||
column[counter % COLUMNS].pack_start(button, True, True)
|
column[counter % COLUMNS].pack_start(button, True, True)
|
||||||
button.show()
|
button.show()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user