[gnome-todo] task-list: Update tasks when moving
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo] task-list: Update tasks when moving
- Date: Thu, 7 Feb 2019 11:17:23 +0000 (UTC)
commit 28d7314c147dd97b1cbac925a9c09c2a93fa9a94
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Feb 7 09:08:52 2019 -0200
task-list: Update tasks when moving
This is terribly innefficient, but it does the job
for now. In the future, what we want is batching
operations.
src/gtd-task-list.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/gtd-task-list.c b/src/gtd-task-list.c
index 76484de..7a61900 100644
--- a/src/gtd-task-list.c
+++ b/src/gtd-task-list.c
@@ -976,6 +976,8 @@ gtd_task_list_move_task_to_position (GtdTaskList *self,
g_signal_handlers_block_by_func (task_at_i, task_changed_cb, self);
gtd_task_set_position (task_at_i, block1_new_start + i);
g_signal_handlers_unblock_by_func (task_at_i, task_changed_cb, self);
+
+ gtd_provider_update_task (priv->provider, task_at_i);
}
/* Update Block 2 */
@@ -988,6 +990,8 @@ gtd_task_list_move_task_to_position (GtdTaskList *self,
g_signal_handlers_block_by_func (task_at_i, task_changed_cb, self);
gtd_task_set_position (task_at_i, block2_new_start + i);
g_signal_handlers_unblock_by_func (task_at_i, task_changed_cb, self);
+
+ gtd_provider_update_task (priv->provider, task_at_i);
}
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]