Diffusion K3b d21096fa6e10

Fix adding files to data project

Authored by broulik on Feb 11 2017, 4:03 PM.

Description

Fix adding files to data project

In cf01ff3159dbddb97e0e67246dee16441a64984a 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

Details

Committed
broulikFeb 11 2017, 4:03 PM
Differential Revision
D4571: Fix adding files to data project
Parents
R467:c01a9cbffec6: Merge remote-tracking branch 'origin/2.0'
Branches
Unknown
Tags
Unknown