labsquare / cutevariant

A standalone and free application to explore genetics variations from VCF file
https://cutevariant.labsquare.org/
GNU General Public License v3.0
102 stars 21 forks source link

ChoiceButton widget doesn't work anymore #585

Open SamuelNicaise opened 1 year ago

SamuelNicaise commented 1 year ago

When clicking on an empty cell in the ChoiceButton widget, the cell is not checked and the following error appears:

Traceback (most recent call last): File "L:\Archives\NGS\BIO_INFO\BIO_INFO_Sam\scripts\cutevariant_project\cutevariant\cutevariant\gui\widgets\choice_button.py", line 87, in setData self.rows_checked.remove(index.row()) KeyError: 2

To Reproduce Try to use a plugin using the ChoiceButton widget (= try adding a field in the genotypes plugin, or filtering samples on their classification in the samples plugin, or execute the main in gui/widgets/choice_button.py )

Expected behavior The cell is checked and no error appears

Desktop (please complete the following information):