From 7b51ca9a4749ce74671f2f903bf65304df786076 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 27 Oct 2011 20:00:20 -0700 Subject: [PATCH] filechooserentry: Use the actual discarding function to discard a folder --- gtk/gtkfilechooserentry.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gtk/gtkfilechooserentry.c b/gtk/gtkfilechooserentry.c index 477439a9a..829b529c9 100644 --- a/gtk/gtkfilechooserentry.c +++ b/gtk/gtkfilechooserentry.c @@ -1477,8 +1477,7 @@ start_loading_current_folder (GtkFileChooserEntry *chooser_entry) if (chooser_entry->local_only && !g_file_is_native (chooser_entry->current_folder_file)) { - g_object_unref (chooser_entry->current_folder_file); - chooser_entry->current_folder_file = NULL; + discard_loading_and_current_folder_file (chooser_entry); return REFRESH_NOT_LOCAL; } -- 2.43.2