summaryrefslogtreecommitdiffstats
path: root/src/library/serato/seratoplaylistmodel.cpp
diff options
context:
space:
mode:
authorDaniel Schürmann <daschuer@mixxx.org>2021-01-04 18:46:27 +0100
committerDaniel Schürmann <daschuer@mixxx.org>2021-01-04 18:46:27 +0100
commitb7171a2b97f7671125abe6ebb8bfffd31ff3e14f (patch)
treefe1183c2054335bbe8b321dbb88a356aae7a1cbc /src/library/serato/seratoplaylistmodel.cpp
parent4813d0ecab0eed0fece4a7a6868204ba151ea877 (diff)
LIBRARYTABLE_LOCATION to LIBRARYTABLE_LOCATION_ID because the column holds only a reference to the track locations table. Use the enum COLUMN_TRACKLOCATIONSTABLE_LOCATION instead of COLUMN_LIBRARYTABLE_NATIVELOCATION becase it points only to the id column. Delete also enums for non existing Playlist table columns.
Diffstat (limited to 'src/library/serato/seratoplaylistmodel.cpp')
-rw-r--r--src/library/serato/seratoplaylistmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/serato/seratoplaylistmodel.cpp b/src/library/serato/seratoplaylistmodel.cpp
index 3fe689e12b..93fad052d8 100644
--- a/src/library/serato/seratoplaylistmodel.cpp
+++ b/src/library/serato/seratoplaylistmodel.cpp
@@ -40,7 +40,7 @@ void SeratoPlaylistModel::initSortColumnMapping() {
fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_FILETYPE);
m_columnIndexBySortColumnId[static_cast<int>(
TrackModel::SortColumnId::NativeLocation)] =
- fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_NATIVELOCATION);
+ fieldIndex(ColumnCache::COLUMN_TRACKLOCATIONSTABLE_LOCATION);
m_columnIndexBySortColumnId[static_cast<int>(TrackModel::SortColumnId::Comment)] =
fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_COMMENT);
m_columnIndexBySortColumnId[static_cast<int>(TrackModel::SortColumnId::Duration)] =