summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJamie Murphy <hello@itsjamie.dev>2022-10-08 16:52:07 -0700
committerJamie Murphy <hello@itsjamie.dev>2022-10-08 16:52:07 -0700
commite2b8f81a292b03fa2a5aca71286d8e7f5bdd0545 (patch)
treef14849fc38c5f4af4337eb37181559f86d54f157 /src
parentbb61eedb181a044da592d5753a89c01646a608b6 (diff)
downloadgnome-todo-e2b8f81a292b03fa2a5aca71286d8e7f5bdd0545.tar.gz
task-list-view: Clear active row on drag motion
Without this, dragging an expanded task would cause the Active Row value to point to incorrect data, leading to a crash. Fixes #447
Diffstat (limited to 'src')
-rw-r--r--src/gui/gtd-task-list-view.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/gtd-task-list-view.c b/src/gui/gtd-task-list-view.c
index 6071d412..0345eb17 100644
--- a/src/gui/gtd-task-list-view.c
+++ b/src/gui/gtd-task-list-view.c
@@ -694,6 +694,9 @@ on_drop_target_drag_motion_cb (GtkDropTarget *drop_target,
GTD_ENTRY;
+ /* Clear the currently active row */
+ set_active_row (self, NULL);
+
drop = gtk_drop_target_get_current_drop (drop_target);
drag = gdk_drop_get_drag (drop);