Also saving tasks when just created

This commit is contained in:
Pierre Pronchery 2010-08-01 01:50:25 +00:00
parent 5a35ced009
commit c37b651b5d
2 changed files with 4 additions and 3 deletions

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Todo 0.0.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2010-08-01 03:46+0200\n"
"POT-Creation-Date: 2010-08-01 03:49+0200\n"
"PO-Revision-Date: 2010-04-23 14:35+0200\n"
"Last-Translator: Pierre Pronchery <khorben@defora.org>\n"
"Language-Team: French\n"
@ -124,10 +124,10 @@ msgstr "Priorité"
msgid "Error"
msgstr "Erreur"
#: ../src/todo.c:448
#: ../src/todo.c:449
msgid "Are you sure you want to delete the selected task(s)?"
msgstr "Voulez-vous vraiment supprimer la sélection?"
#: ../src/todo.c:656 ../src/todo.c:661
#: ../src/todo.c:657 ../src/todo.c:662
msgid "Question"
msgstr "Question"

View File

@ -394,6 +394,7 @@ Task * todo_task_add(Todo * todo, Task * task)
task_set_filename(task, filename);
free(filename);
task_set_title(task, _("New task"));
task_save(task);
}
gtk_list_store_insert(todo->store, &iter, 0);
if((start = task_get_start(task)) != 0)