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