Skip to content
  • Kai Uwe Broulik's avatar
    Fix adding files to data project · d21096fa
    Kai Uwe Broulik authored
    In cf01ff31 this broke by randomly using QSharedPointer in the wrong way.
    There was only this one item being referenced, once it fell out of scope it got deleted, and then by the
    time the event loop returned and the queued invocation was processed, the object was already gone.
    
    Just use WA_DeleteOnClose which will clean up nicely once we're done.
    
    BUG: 375016
    
    Differential Revision: https://phabricator.kde.org/D4571
    d21096fa