Commit 3e114046 authored by David Redondo's avatar David Redondo 🏎
Browse files

Fix duplicate name columns appearing when configuring columns

There were two issues:
1. The wrong name of the fixedColumn in the Applciation Table
2. We also need to remove the fixed columns from the display in the config dialog
BUG:433216
FIXED-IN:5.21.1


(cherry picked from commit 0c683b38)
parent 472eb0df
......@@ -297,7 +297,7 @@ Faces.SensorFace {
sortedColumns: root.config.sortedColumns
fixedColumns: ["name"]
fixedColumns: ["appName"]
onAccepted: {
root.config.sortedColumns = sortedColumns
......
......@@ -59,7 +59,10 @@ Dialog {
onAboutToShow: {
sortModel.sortedColumns = sortedColumns.filter(id => fixedColumns.indexOf(id) == -1)
displayModel.columnDisplay = columnDisplay
let tempDisplay = columnDisplay
fixedColumns.forEach(column => delete tempDisplay[column])
displayModel.columnDisplay = tempDisplay
}
Rectangle {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment