Skip to content
Snippets Groups Projects
Commit 56aebfef authored by Kien Le's avatar Kien Le
Browse files

Merge branch...

Merge branch 'bug-data_sdata_black_and_white_background_button_can_only_have_one_toggled' into 'develop'

Fix radio buttons becoming exclusive

See merge request !312
parents 10b21a4b 6c94422c
No related branches found
No related tags found
1 merge request!312Fix radio buttons becoming exclusive
Pipeline #3962 passed with stage
in 7 minutes and 23 seconds
......@@ -494,6 +494,14 @@ class UIMainWindow(object):
background_group.addButton(self.background_black_radio_button)
background_group.addButton(self.background_white_radio_button)
# For some reason, these button groups are deleted once they are out of
# scope, which causes the radio buttons they manage to be in the same
# group. This means that the sdata and data buttons are then also
# exclusive with the black and white background buttons. To fix the
# problem, we save the groups in the class so they don't get deleted.
self.data_group = data_group
self.background_group = background_group
add_separation_line(left_layout)
gap_layout = QHBoxLayout()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment