diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a4081f5e..6f1c46614 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +- Fixed a crash when clicking a column header on a table whose columns have comments. Sorting such a table quit the app immediately. (#1869) + ## [0.57.0] - 2026-07-14 ### Added diff --git a/TablePro/Views/Results/DataGridColumnPool.swift b/TablePro/Views/Results/DataGridColumnPool.swift index 9da21d528..4226de7d9 100644 --- a/TablePro/Views/Results/DataGridColumnPool.swift +++ b/TablePro/Views/Results/DataGridColumnPool.swift @@ -41,7 +41,8 @@ final class DataGridColumnPool { let willRestoreWidths = !(savedLayout?.columnWidths.isEmpty ?? true) let hiddenFromLayout = savedLayout?.hiddenColumns ?? [] - var commentsChanged = false + var comments: [NSUserInterfaceItemIdentifier: String] = [:] + var showsComments = false for slot in 0..