Commit b0558c7b authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson

Fix this check to actually only access local files, not fuse-based gvfs

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.



svn path=/trunk/; revision=13892
parent abd66001
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.
2008-03-06 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-icon-container.c:
......
......@@ -609,10 +609,10 @@ nautilus_bookmark_uri_known_not_to_exist (NautilusBookmark *bookmark)
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment