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

Fix the issue

parent 10b21a4b
No related branches found
No related tags found
1 merge request!312Fix radio buttons becoming exclusive
Pipeline #3961 passed with stage
in 8 minutes and 53 seconds
...@@ -494,6 +494,14 @@ class UIMainWindow(object): ...@@ -494,6 +494,14 @@ class UIMainWindow(object):
background_group.addButton(self.background_black_radio_button) background_group.addButton(self.background_black_radio_button)
background_group.addButton(self.background_white_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) add_separation_line(left_layout)
gap_layout = QHBoxLayout() 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