- ctxt = gtk_entry_get_text(w_project);
- if (!task->project || strcmp(ctxt, task->project))
- tw_modify_project(task->uuid, ctxt);
+ if (tasks) {
+ ui_projecttree_update(tasks);
+ ui_tasktree_update(tasks, current_prj);
+ if (current_uuid)
+ ui_tasktree_set_selected_task(current_uuid);
+ } else {
+ dialog = gtk_message_dialog_new(NULL,
+ GTK_DIALOG_DESTROY_WITH_PARENT,
+ GTK_MESSAGE_ERROR,
+ GTK_BUTTONS_CLOSE,
+ _("Error loading tasks, verify "
+ "that a supported version of "
+ "taskwarrior is installed "));
+ gtk_dialog_run(GTK_DIALOG(dialog));
+ gtk_widget_destroy(dialog);
+ }