dynamic-desktop icon indicating copy to clipboard operation
dynamic-desktop copied to clipboard

Player won't start playing if first add files to playlists

Open wangwenx190 opened this issue 6 years ago • 4 comments

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.

wangwenx190 avatar Dec 04 '18 15:12 wangwenx190

Even if there are items in the combobox, currentText() still return an empty QString. Strange. Don't know why.

wangwenx190 avatar Dec 04 '18 15:12 wangwenx190

Bug located. signal dataRefreshed() emitted too early. May fix another bug at the same time.

wangwenx190 avatar Dec 04 '18 16:12 wangwenx190

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.

wangwenx190 avatar Dec 05 '18 07:12 wangwenx190

Leave it open for a bit longer, make sure it is actually fixed.

wangwenx190 avatar Dec 05 '18 07:12 wangwenx190