Skip to content

Commit

Permalink
Fix crashing bug when using Qt6 - use explicit Qt ItemFlags
Browse files Browse the repository at this point in the history
  • Loading branch information
bjheinen committed Jun 4, 2024
1 parent a36f3a6 commit 49dd926
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LiquidDiffract/gui/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -1045,8 +1045,8 @@ def __init__(self, data, ref_data, prefs, bkg_flag):
_y_b_item = self.compute_map_config_widget.map_options_gb.y_param_input_list.item(1)
# (item.flags() & ~Qt.ItemIsSelectable & ~Qt.ItemIsEnabled)
# Qt.ItemIsSelectable == 1, Qt.ItemIsEnabled == 32
_x_b_item.setFlags(_x_b_item.flags() & ~1 & ~32)
_y_b_item.setFlags(_y_b_item.flags() & ~1 & ~32)
_x_b_item.setFlags(_x_b_item.flags() & ~Qt.ItemIsSelectable & ~Qt.ItemIsEnabled)
_y_b_item.setFlags(_y_b_item.flags() & ~Qt.ItemIsSelectable & ~Qt.ItemIsEnabled)

self.create_signals()

Expand Down

0 comments on commit 49dd926

Please sign in to comment.