nautilus r13892 - in trunk: . libnautilus-private



Author: alexl
Date: Thu Mar  6 21:15:14 2008
New Revision: 13892
URL: http://svn.gnome.org/viewvc/nautilus?rev=13892&view=rev

Log:
2008-03-06  Alexander Larsson  <alexl redhat com>

        * libnautilus-private/nautilus-bookmark.c:
        (nautilus_bookmark_uri_known_not_to_exist):
	Fix this check to actually only access local
	files, not fuse-based gvfs paths.




Modified:
   trunk/ChangeLog
   trunk/libnautilus-private/nautilus-bookmark.c

Modified: trunk/libnautilus-private/nautilus-bookmark.c
==============================================================================
--- trunk/libnautilus-private/nautilus-bookmark.c	(original)
+++ trunk/libnautilus-private/nautilus-bookmark.c	Thu Mar  6 21:15:14 2008
@@ -609,10 +609,10 @@
 	gboolean exists;
 
 	/* Convert to a path, returning FALSE if not local. */
-	path_name = g_file_get_path (bookmark->details->location);
-	if (path_name == NULL) {
+	if (!g_file_is_native (bookmark->details->location)) {
 		return FALSE;
 	}
+	path_name = g_file_get_path (bookmark->details->location);
 
 	/* Now check if the file exists (sync. call OK because it is local). */
 	exists = g_file_test (path_name, G_FILE_TEST_EXISTS);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]