Skip to content

Commit

Permalink
Replace strings by enums
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed Oct 21, 2024
1 parent e2cbcaf commit 03fd6d9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/library/missing_hidden/hiddentablemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ void HiddenTableModel::setTableModel() {
LIBRARYTABLE_ID,
std::move(tableColumns),
m_pTrackCollectionManager->internalCollection()->getTrackSource());
setDefaultSort(fieldIndex("artist"), Qt::AscendingOrder);
setDefaultSort(fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_ARTIST), Qt::AscendingOrder);
setSearch("");
}

Expand Down
2 changes: 1 addition & 1 deletion src/library/missing_hidden/missingtablemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void MissingTableModel::setTableModel(int id) {
LIBRARYTABLE_ID,
std::move(tableColumns),
m_pTrackCollectionManager->internalCollection()->getTrackSource());
setDefaultSort(fieldIndex("artist"), Qt::AscendingOrder);
setDefaultSort(fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_ARTIST), Qt::AscendingOrder);
setSearch("");

}
Expand Down
2 changes: 1 addition & 1 deletion src/library/trackset/crate/cratetablemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ void CrateTableModel::selectCrate(CrateId crateId) {

// Restore search text
setSearch(m_searchTexts.value(m_selectedCrate));
setDefaultSort(fieldIndex("artist"), Qt::AscendingOrder);
setDefaultSort(fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_ARTIST), Qt::AscendingOrder);
}

bool CrateTableModel::addTrack(const QModelIndex& index, const QString& location) {
Expand Down

0 comments on commit 03fd6d9

Please sign in to comment.