dynamic-desktop
dynamic-desktop copied to clipboard
Player won't start playing if first add files to playlists
Describe the bug
If you run this tool for the first time, the player will not start playing even if you have added files to the playlist.
To Reproduce
Add files to the playlist when there is only one empty playlist
Expected behavior
Player plays the first file in the current playlist
Actual behavior
Nothing happens and click the play button is not working as well.
Even if there are items in the combobox, currentText() still return an empty QString. Strange. Don't know why.
Bug located. signal dataRefreshed() emitted too early. May fix another bug at the same time.
It seems that commit f5d24544ea1a902f2db3c37034c14a79b31930ca has fixed this issue. Quite ugly code, I admit. But it works anyway. I hope I can make it more beautiful some time later.
Leave it open for a bit longer, make sure it is actually fixed.