--- a/eric6/Tasks/TasksFile.py Sat May 01 18:48:35 2021 +0200 +++ b/eric6/Tasks/TasksFile.py Sat May 01 20:28:00 2021 +0200 @@ -18,6 +18,8 @@ import Preferences +from .Task import TaskType + class TasksFile(QObject): """ @@ -138,7 +140,8 @@ task["summary"], priority=task["priority"], filename=task["filename"], lineno=task["lineno"], completed=task["completed"], _time=task["created"], - isProjectTask=not self.__isGlobal, taskType=task["type"], + isProjectTask=not self.__isGlobal, + taskType=TaskType(task["type"]), description=task["description"], uid=task["uid"], parentTask=task["parent_uid"]) addedTasks.append((addedTask, task["expanded"]))