From: bdilly Date: Mon, 20 Aug 2007 17:49:02 +0000 (+0000) Subject: small fix in export to ocal gnome_vfs function calls X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=76b969065cfc58f139c8056a7af37f85197cef85;p=inkscape.git small fix in export to ocal gnome_vfs function calls --- 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;