From 284168f36651a5ae3805a34214a5f732cf05c4ff Mon Sep 17 00:00:00 2001 From: Bruno Dilly Date: Mon, 20 Aug 2007 17:49:02 +0000 Subject: small fix in export to ocal gnome_vfs function calls (bzr r3554) --- src/file.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/file.cpp') 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; -- cgit v1.2.3