Index: gtkfilechooser.c
===================================================================
--- gtkfilechooser.c	(revision 21136)
+++ gtkfilechooser.c	(working copy)
@@ -1022,6 +1022,14 @@
   g_return_val_if_fail (G_IS_FILE (file), FALSE);
   g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
 
+  if (g_file_is_native (file))
+  {
+    if (!g_file_test (g_file_get_uri (file), G_FILE_TEST_IS_DIR))
+    {
+      return FALSE;
+    }
+  }
+
   return GTK_FILE_CHOOSER_GET_IFACE (chooser)->set_current_folder (chooser, file, error);
 }
 
