In order to remove any song which is currently not being played, we first have to select that song (can be done only by clicking on that particular song). And on selection, the song gets played which will result in termination of the session of the song which we were listening to earlier. Reproducible: Always Steps to Reproduce: 1. Play any song in the playlist. 2. To remove any other song, click on it. 3. On the selection of song (to be deleted), the session of the previous song is terminated. Expected Results: Deletion of any song other than the one being played should not terminate the session of the present media.
I would like to present 2 solutions that can solve this problem. Here they are: 1) As of now, selection of song and playing it is done simulateneously by just single clicking on it. Instead of doing this, we can fire an another event:- QEvent::MouseButtonDblClick and handle it at the places where we want to play the media. This will suffice to our purpose of deleting any song other than the one being played as now the selection of any song and playing it will be handled in a different manner using single mouse click and double mouse click respectively. - The same task can be accomplished using only keyboard navigation as well. Up/Down keys will select the songs and pressing the enter will play it. 2) Next solution will result in adding an another button called the "play button" just before the "removeFromPlaylistButton". Now, any song in the playlist won't be played by just single clicking on it but by selecting or clicking on it first and then choosing one of the two buttons (as mentioned above), instead of. The one extra advantage of latter feature is that we can remove the multiple songs simultaneously. Both of the above mentioned features can also be used to reorder the songs in the playlist as both will handle the selection of songs in a different way and then after selecting it, just dragging it up or down in the playlist or firing the event- "QDragMoveEvent".
We cannot use double clicks, because no one likes double tapping tablet screens. Instead what should happen is that the "remove" button should simply be shown for all songs. Thats the simplest solution I can think of right now. Also, please do not discuss about reordering items in this bug, that should goto bug #319621
Created attachment 79907 [details] Remove another song from playlist without stopping the current media Now, in the playlist, "remove" sign is shown on every song , so the user has to just click that "sign" instead of clicking the song which earlier stopped the media. So basically now the current media is not stopped when deleting an item from a playlist.
Commit ID :: db2ef72c14d70126c2ff2130a886d4538784753e Please consider closing it :)