Fix crash when deleting task in the middle of drag&drop

Authored by aspotashev on Jun 17 2019, 12:13 AM.

Description

Fix crash when deleting task in the middle of drag&drop

Test Plan:

  1. Create task named "1"
  2. 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

  1. 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

  1. Click and drag task "1" to start the drag&drop operation
  2. Wait until the task is deleted by D-Bus call.
  3. Drop the task on empty field in the KTimeTracker task list (make

sure it does not crash).

Details

Committed
aspotashevJun 17 2019, 12:18 AM
Parents
R1045:b361384e154f: Fix table header context menu
Branches
Unknown
Tags
Unknown