Skip to content

Commit 1486bfd

Browse files
authored
Merge pull request #3099 from phw/PICARD-3234-fix-add-columns
PICARD-3234: Fix columns being restored with 0 width
2 parents 3509e2b + 4eca88f commit 1486bfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

picard/ui/widgets/configurablecolumnsheader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def restore_columns_state(self, state: dict[str, dict]):
348348
QtWidgets.QHeaderView.ResizeMode.Fixed.value,
349349
QtWidgets.QHeaderView.ResizeMode.Interactive.value,
350350
}:
351-
self.resizeSection(i, column_state.get('width', column.width or 100))
351+
self.resizeSection(i, column_state.get('width', 0) or column.width or 100)
352352

353353
# Sort indicator uses logical index, independent of visual positioning
354354
if 'sorted' in column_state:

0 commit comments

Comments
 (0)