Lidl-Soundboard
Lidl-Soundboard copied to clipboard
Bug when sorting sounds
Sorting the list will make the play (and edit and delete) button(s) play (or edit or delete) the wrong sound.
Proposed fix
- attach the sound as a weak pointer on the QList<QStandardItem*> https://stackoverflow.com/questions/23619124/attach-custom-object-to-qstandarditem-in-qt
We however need to keep the sounds array to be able to register and unregister sounds