diff options
Diffstat (limited to 'src/library/basesqltablemodel.cpp')
-rw-r--r-- | src/library/basesqltablemodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/basesqltablemodel.cpp b/src/library/basesqltablemodel.cpp index dfd4da4308..ea55ff18ab 100644 --- a/src/library/basesqltablemodel.cpp +++ b/src/library/basesqltablemodel.cpp @@ -525,7 +525,7 @@ void BaseSqlTableModel::setSort(int column, Qt::SortOrder order) { m_sortColumns.prepend(SortColumn(column, order)); } else if (m_trackSource) { bool first = true; - for (const SortColumn& sc : m_sortColumns) { + for (const SortColumn& sc : qAsConst(m_sortColumns)) { QString sort_field; if (sc.m_column < m_tableColumns.size()) { if (sc.m_column == kIdColumn) { |