Fix crash when deleting task in the middle of drag&drop
Test Plan:
- Create task named "1"
- Determine its UID (e.g. using D-Bus, or alternatively look in the
.ics file):
$ qdbus-qt5 org.kde.ktimetracker /KTimeTracker org.kde.ktimetracker.ktimetracker.taskIdsFromName 1
4b178adf-0f9a-4cfa-956a-1cff9ad29efc
- Setup timer to delete the task without interacting with the UI:
sleep 10 ; qdbus-qt5 org.kde.ktimetracker /KTimeTracker org.kde.ktimetracker.ktimetracker.deleteTask 4b178adf-0f9a-4cfa-956a-1cff9ad29efc
- Click and drag task "1" to start the drag&drop operation
- Wait until the task is deleted by D-Bus call.
- Drop the task on empty field in the KTimeTracker task list (make
sure it does not crash).