Skip to content
  • Jonah Brüchert's avatar
    EmojiModel: Fix crash in destructor · 359e2cc4
    Jonah Brüchert authored
    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.
    359e2cc4