diff options
author | Daniel Schürmann <daschuer@mixxx.org> | 2021-01-04 18:46:27 +0100 |
---|---|---|
committer | Daniel Schürmann <daschuer@mixxx.org> | 2021-01-04 18:46:27 +0100 |
commit | b7171a2b97f7671125abe6ebb8bfffd31ff3e14f (patch) | |
tree | fe1183c2054335bbe8b321dbb88a356aae7a1cbc /src/library/basesqltablemodel.cpp | |
parent | 4813d0ecab0eed0fece4a7a6868204ba151ea877 (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/basesqltablemodel.cpp')
-rw-r--r-- | src/library/basesqltablemodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/basesqltablemodel.cpp b/src/library/basesqltablemodel.cpp index b6b422a33d..b9c0615716 100644 --- a/src/library/basesqltablemodel.cpp +++ b/src/library/basesqltablemodel.cpp @@ -100,7 +100,7 @@ void BaseSqlTableModel::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); @@ -755,7 +755,7 @@ QString BaseSqlTableModel::getTrackLocation(const QModelIndex& index) const { } QString nativeLocation = index.sibling(index.row(), - fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_NATIVELOCATION)) + fieldIndex(ColumnCache::COLUMN_TRACKLOCATIONSTABLE_LOCATION)) .data() .toString(); return QDir::fromNativeSeparators(nativeLocation); |