Lidl-Soundboard icon indicating copy to clipboard operation
Lidl-Soundboard copied to clipboard

Bug when sorting sounds

Open devolution2409 opened this issue 6 years ago • 0 comments

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

devolution2409 avatar May 12 '19 12:05 devolution2409