EmojiModel: Fix crash in destructor

Authored by jbbgameich on Mar 21 2020, 11:02 PM.

Description

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.

Details

Committed
jbbgameichMar 21 2020, 11:16 PM
Parents
R1041:944a1adcd9b8: Revert unnecessary change in documentation
Branches
Unknown
Tags
Unknown