filechooserentry: Use the actual discarding function to discard a folder

This commit is contained in:
Benjamin Otte
2011-10-27 20:00:20 -07:00
committed by Federico Mena Quintero
parent 6d184e9707
commit a82a166700

View File

@@ -1469,8 +1469,7 @@ start_loading_current_folder (GtkFileChooserEntry *chooser_entry)
if (chooser_entry->local_only
&& !_gtk_file_has_native_path (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;
}