GNOME Bugzilla – Bug 780523
playlist dialog shows the playlist that is going to be deleted which can lead to force close
Last modified: 2018-01-10 15:03:53 UTC
Steps to reproduce: * delete a playlist * within 5 seconds, select a song, and click add to playlist * playlist dialog shows up with the deleted playlist a list item * let 5 seconds get over, now the playlist has been truly deleted * select deleted playlist in playlist_dialog --force close-- We should prevent the playlist that is going to be deleted from showing up in the playlist dialog.
Created attachment 348690 [details] [review] playlistdialog: Prevent display of playlist that is going to be deleted During population of the dialog's list, check if the item id is equal to the id of the playlist that is going to be deleted. If true, then do not display the item.
Review of attachment 348690 [details] [review]: lgtm
*** Bug 780586 has been marked as a duplicate of this bug. ***
Thanks for the patch, pushed.
Ahh I just noticed that my patch doesn't let the playlists to be shown that are deleted and undo-ed once. Reproduce: * delete a playlist * undo * playlist doesn't show up
Created attachment 349876 [details] [review] Reset pl_todelete variables on undo
I can't reproduce this, for me on undo it does show up again.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-music/issues/104.