Skip to content

Commit

Permalink
Fix incorrect index
Browse files Browse the repository at this point in the history
  • Loading branch information
kraxarn committed Oct 4, 2020
1 parent c6fd5e9 commit ea16d07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/list/trackslist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ void TracksList::clicked(QTreeWidgetItem *item, int)
auto status = (mainWindow->getLibraryList()->currentItem() != nullptr
|| !this->settings.general.spotifyPlaybackOrder)
&& allTracks.count() < 500
? this->spotify.playTracks(trackIndex, allTracks)
? this->spotify.playTracks(currentIndex().row(), allTracks)
: this->spotify.playTracks(trackIndex, mainWindow->getSptContext());

if (!status.isEmpty())
Expand Down

0 comments on commit ea16d07

Please sign in to comment.