PlaylistView: Use `Playlist::ColumnCount`

This commit is contained in:
Jonas Kvinge 2024-06-20 23:00:33 +02:00
parent 9f9c46e370
commit 4be9265546
1 changed files with 1 additions and 1 deletions

View File

@ -1399,7 +1399,7 @@ void PlaylistView::SongChanged(const Song &song) {
if (select_track_ && playlist_) {
clearSelection();
QItemSelection selection(playlist_->index(playlist_->current_row(), 0), playlist_->index(playlist_->current_row(), static_cast<int>(playlist_->Column::ColumnCount) - 1));
QItemSelection selection(playlist_->index(playlist_->current_row(), 0), playlist_->index(playlist_->current_row(), Playlist::ColumnCount - 1));
selectionModel()->select(selection, QItemSelectionModel::Select);
}