aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/gncal-todo.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/calendar/gui/gncal-todo.c b/calendar/gui/gncal-todo.c
index 4f2f0345bb..599f85a6c0 100644
--- a/calendar/gui/gncal-todo.c
+++ b/calendar/gui/gncal-todo.c
@@ -258,6 +258,11 @@ delete_todo (GncalTodo *todo)
static void
add_activated (GtkWidget *widget, GncalTodo *todo)
{
+ GtkWidget *w;
+
+ while ((w = gtk_grab_get_current ()) != NULL)
+ gtk_grab_remove (w);
+
add_todo (todo);
}