mirror of
https://github.com/clementine-player/Clementine
synced 2025-02-01 11:56:45 +01:00
Use the current playlist, not the active playlist, when rating songs. Fixes issue #1047
This commit is contained in:
parent
47c13c4479
commit
fca0ce1188
@ -1339,8 +1339,8 @@ void MainWindow::PlaylistEditFinished(const QModelIndex& index) {
|
||||
|
||||
void MainWindow::PlaylistSongRated(const QModelIndex& index, double rating) {
|
||||
const QModelIndex source_index =
|
||||
playlists_->active()->proxy()->mapToSource(index);
|
||||
PlaylistItemPtr item(playlists_->active()->item_at(source_index.row()));
|
||||
playlists_->current()->proxy()->mapToSource(index);
|
||||
PlaylistItemPtr item(playlists_->current()->item_at(source_index.row()));
|
||||
if (item && item->IsLocalLibraryItem()) {
|
||||
library_->backend()->UpdateSongRatingAsync(item->Metadata().id(), rating);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user