The program now sets the default locale, the ok button in edittaskpanel returns an todoitem. Some exceptions, but the code compiles and runs