diff options
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkfilechooserentry.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkfilechooserentry.c b/gtk/gtkfilechooserentry.c index aef6d312c8..a98041aabd 100644 --- a/gtk/gtkfilechooserentry.c +++ b/gtk/gtkfilechooserentry.c @@ -939,7 +939,8 @@ completion_feedback_timeout_cb (gpointer data) static void install_completion_feedback_timer (GtkFileChooserEntry *chooser_entry) { - g_assert (chooser_entry->completion_feedback_timeout_id == 0); + if (chooser_entry->completion_feedback_timeout_id != 0) + g_source_remove (chooser_entry->completion_feedback_timeout_id); chooser_entry->completion_feedback_timeout_id = gdk_threads_add_timeout (COMPLETION_FEEDBACK_TIMEOUT_MS, completion_feedback_timeout_cb, |