mirror of
https://github.com/clementine-player/Clementine
synced 2025-02-02 20:36:44 +01:00
Fix a crash when changing a song's rating in the edit tag dialog. Fixes issue 2773
This commit is contained in:
parent
b98f21dd09
commit
a315bb41f6
@ -53,7 +53,6 @@ EditTagDialog::EditTagDialog(Application* app, QWidget* parent)
|
||||
ui_(new Ui_EditTagDialog),
|
||||
app_(app),
|
||||
album_cover_choice_controller_(new AlbumCoverChoiceController(this)),
|
||||
backend_(NULL),
|
||||
loading_(false),
|
||||
ignore_edits_(false),
|
||||
tag_fetcher_(new TagFetcher(this)),
|
||||
@ -746,7 +745,7 @@ void EditTagDialog::SongRated(float rating) {
|
||||
return;
|
||||
|
||||
song->set_rating(rating);
|
||||
backend_->UpdateSongRatingAsync(song->id(), rating);
|
||||
app_->library_backend()->UpdateSongRatingAsync(song->id(), rating);
|
||||
}
|
||||
|
||||
void EditTagDialog::ResetPlayCounts() {
|
||||
@ -767,7 +766,7 @@ void EditTagDialog::ResetPlayCounts() {
|
||||
song->set_skipcount(0);
|
||||
song->set_lastplayed(-1);
|
||||
song->set_score(0);
|
||||
backend_->ResetStatisticsAsync(song->id());
|
||||
app_->library_backend()->ResetStatisticsAsync(song->id());
|
||||
UpdateStatisticsTab(*song);
|
||||
}
|
||||
|
||||
|
@ -139,8 +139,6 @@ private:
|
||||
Application* app_;
|
||||
AlbumCoverChoiceController* album_cover_choice_controller_;
|
||||
|
||||
LibraryBackend* backend_;
|
||||
|
||||
bool loading_;
|
||||
|
||||
PlaylistItemList playlist_items_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user