Correction of two problems in the task view

- When we delete the last subtask, the selection move to parent task but delete action is not enabled
- When we add subtask, the selection stay in parent task and the delete action is still enabled
Merge pull request #154 from ben2367/master

Correction of two problems in the task view