clear TaskTreeModel before checking creation object's validity.
TaskProperty:
1. fix recent dirs ordering.
2. remember last adapter used.