diff options
-rw-r--r-- | gtk/gtkfilechooserwidget.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c index b365204d88..517f34441e 100644 --- a/gtk/gtkfilechooserwidget.c +++ b/gtk/gtkfilechooserwidget.c @@ -2225,17 +2225,14 @@ location_entry_changed_cb (GtkEditable *editable, switch_to_home_dir (impl); } - if (impl->action != GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER) - { - /* Reset location timeout */ - if (impl->location_changed_id > 0) - g_source_remove (impl->location_changed_id); - - impl->location_changed_id = g_timeout_add (LOCATION_CHANGED_TIMEOUT, - location_changed_timeout_cb, - impl); - gdk_source_set_static_name_by_id (impl->location_changed_id, "[gtk] location_changed_timeout_cb"); - } + /* Reset location timeout */ + if (impl->location_changed_id > 0) + g_source_remove (impl->location_changed_id); + + impl->location_changed_id = g_timeout_add (LOCATION_CHANGED_TIMEOUT, + location_changed_timeout_cb, + impl); + gdk_source_set_static_name_by_id (impl->location_changed_id, "[gtk] location_changed_timeout_cb"); } static void |