diff options
author | Jamie Murphy <hello@itsjamie.dev> | 2022-09-10 16:14:23 -0700 |
---|---|---|
committer | Jamie Murphy <hello@itsjamie.dev> | 2022-09-10 16:14:23 -0700 |
commit | fec604d090683ba5e80a56c1928c8230da54f600 (patch) | |
tree | 53da15d7ff38cd19a35e5e6258ae5905133664cd /src | |
parent | d8bbc05bf75f763db56b07c7428c24978a623473 (diff) | |
download | gnome-todo-fec604d090683ba5e80a56c1928c8230da54f600.tar.gz |
task_list_view: Clear active row when refreshing model
Since the model refreshes the whole ListBox, the `create_row_for_task_cb` function can clear the active row without issue, as the active row is already being removed from the ListBox.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/gtd-task-list-view.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/gtd-task-list-view.c b/src/gui/gtd-task-list-view.c index 1eb4b9da..6071d412 100644 --- a/src/gui/gtd-task-list-view.c +++ b/src/gui/gtd-task-list-view.c @@ -286,6 +286,8 @@ create_row_for_task_cb (gpointer item, self = GTD_TASK_LIST_VIEW (user_data); + set_active_row (self, NULL); + if (GTD_IS_TASK (item)) { row = gtd_task_row_new (item, self->renderer); |