Verified Commit 359e2cc4 authored by Jonah Brüchert's avatar Jonah Brüchert 🌳

EmojiModel: Fix crash in destructor

We can't really know in which order the QmlEngine destroyes the objects, so sometimes the Kaidan::instance() is already deleted when the the EmojiModel destructor is called.
The leads to favourite emojis being lost (oh no) and a segfault.

Fix it by saving when a favourite was added, not when the model is destroyed.
parent 944a1adc
Pipeline #16945 canceled with stages