-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Playlist feature: add 'Shuffle playlist' sidebar action #12498
Conversation
4f5d3c7
to
6950df4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I have just left a suggestion. Please give a hint for merge.
} else { | ||
// Create a temp model so we don't need to select the playlist | ||
// in the persistent model in order to shuffle it | ||
QScopedPointer<PlaylistTableModel> pPlaylistTableModel( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you consider to use unique_ptr and make_unique to get around the literal new()? You may also update other occurrences.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tbh I didn't think about it in this case. Ime my PRs sit for too long when I optimize too much en passant.
However, there are 9 occurences of this pattern in the playlist features and I can of course change them to use unique_ptr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ups, I did not notice how that there so many occurrences. Thank you very much for fixing them all.
89e2f09
to
d567642
Compare
Ready for merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you.
Closes #6988