From 76b969065cfc58f139c8056a7af37f85197cef85 Mon Sep 17 00:00:00 2001 From: bdilly Date: Mon, 20 Aug 2007 17:49:02 +0000 Subject: [PATCH] small fix in export to ocal gnome_vfs function calls --- src/file.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/file.cpp b/src/file.cpp index 0e8a084e3..a08be62c0 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -570,15 +570,10 @@ file_save_remote(SPDocument *doc, const Glib::ustring &uri, g_warning("Could not find the temp saving."); return false; } - + result = gnome_vfs_create (&to_handle, uri_local, GNOME_VFS_OPEN_WRITE, FALSE, GNOME_VFS_PERM_USER_ALL); result = gnome_vfs_open (&to_handle, uri_local, GNOME_VFS_OPEN_WRITE); - - if (result == GNOME_VFS_ERROR_NOT_FOUND){ - result = gnome_vfs_create (&to_handle, uri_local, GNOME_VFS_OPEN_WRITE, FALSE, GNOME_VFS_PERM_USER_ALL); - } - if (result != GNOME_VFS_OK) { g_warning("file creating: %s", gnome_vfs_result_to_string(result)); return false; -- 2.30.2