- opts = malloc(1
- + strlen(task->uuid)
- + strlen(" modify description:\"")
- + strlen(txt)
- + strlen("\"")
- + 1);
- sprintf(opts, " %s modify \"%s\"", task->uuid, txt);
-
- task_exec(opts);
-
- free(txt);
+ ctxt = gtk_entry_get_text(w_project);
+ if (!task->project || strcmp(ctxt, task->project))
+ tw_modify_project(task->uuid, ctxt);