table: Explicitly remove duplicate entries from sortedColumns in ColumnSFModel
- table: Do nothing if data() functions are passed an invalid index
This prevents spam from Qt about trying to access invalid indices.
- table: Make sure to cleanup sorted columns when using "hide column" on table
We need to make sure that if we hide a column, that column doesn't suddenly reappear again, so we should make sure to call the column cleanup function here as well.
- table: Explicitly remove duplicate entries from sortedColumns in ColumnSFModel
In some cases we can end up with duplicate entries in sortedColumns. That leads to incorrect display of columns. So remove any duplicates from the list of sorted columns as a final cleanup step.