]> Pileus Git - ~andy/gtk/commitdiff
filechooserentry: Use the actual discarding function to discard a folder
authorBenjamin Otte <otte@redhat.com>
Fri, 28 Oct 2011 03:00:20 +0000 (20:00 -0700)
committerBenjamin Otte <otte@redhat.com>
Fri, 16 Dec 2011 19:09:11 +0000 (20:09 +0100)
gtk/gtkfilechooserentry.c

index 477439a9a15a18b02807b23d2f7f415b24ef8b45..829b529c900c6e0cde906d54d377c78d3cd3eaeb 100644 (file)
@@ -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;
     }