Skip to content

qt: make control bar model behave like a value type again

Fatih Uzunoğlu requested to merge fuzun/vlc:qt/revertiddcontrolbarmodel into master

Addressable types that can not behave like a value type, such as having an external "ID" field, bring considerable problems and hinder maintenance. It becomes harder to serialize, which is a necessity since we want to save the toolbar layout, and new tricky questions arise such as: are two models that have exactly the same layout and elements the "same", even if their IDs differ?

This partially reverts commit 09ca278c, and uses deep comparison instead of associating ID to the model for selection purposes.

Request review @chub.

Merge request reports