Skip to content
  • Milian Wolff's avatar
    Fix crashes when document gets destroyed directly after load · 0be566e3
    Milian Wolff authored and Kevin Funk's avatar Kevin Funk committed
    This fixes the clang code completion unit test, which used to
    crash on exit since the event loop wasn't run between loading
    a document and destroying it again.
    
    To guard against this, we need to jump through a QPointer hoop,
    which requires some lambda boiler plate but otherwise isn't too bad.
    
    (cherry picked from commit 8f9f8d1c)
    0be566e3