From 4be9265546829bf9d7a8a575f0c96402fa3816fb Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Thu, 20 Jun 2024 23:00:33 +0200 Subject: [PATCH] PlaylistView: Use `Playlist::ColumnCount` --- src/playlist/playlistview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/playlist/playlistview.cpp b/src/playlist/playlistview.cpp index b88538070..57966167f 100644 --- a/src/playlist/playlistview.cpp +++ b/src/playlist/playlistview.cpp @@ -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(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); }