[gnome-todo] task-list-view: only save task after setting the default date
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo] task-list-view: only save task after setting the default date
- Date: Thu, 6 Oct 2016 01:17:14 +0000 (UTC)
commit 5f36c323d41edb3d03efac0fa94bf89387f2dad2
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Oct 5 22:12:22 2016 -0300
task-list-view: only save task after setting the default date
When we add a new task from Today view, it doesn't appear immediately
because the due date of the task is being set ~after~ adding it to the
list (and not saving again to update it).
Fix that by setting the due date before saving the task to the tasklist.
src/gtd-task-list-view.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gtd-task-list-view.c b/src/gtd-task-list-view.c
index af65aa8..18b5375 100644
--- a/src/gtd-task-list-view.c
+++ b/src/gtd-task-list-view.c
@@ -710,11 +710,11 @@ gtd_task_list_view__create_task (GtdTaskRow *row,
* their parent lists.
*/
gtd_task_set_list (task, list);
- gtd_task_list_save_task (list, task);
if (priv->default_date)
gtd_task_set_due_date (task, priv->default_date);
+ gtd_task_list_save_task (list, task);
gtd_manager_create_task (gtd_manager_get_default (), task);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]