summaryrefslogtreecommitdiffstats
path: root/src/file.cpp
diff options
context:
space:
mode:
authorBruno Dilly <bruno.dilly@gmail.com>2007-08-20 17:49:02 +0000
committerbdilly <bdilly@users.sourceforge.net>2007-08-20 17:49:02 +0000
commit284168f36651a5ae3805a34214a5f732cf05c4ff (patch)
tree07236b2de977cfc826b779fe6e12c6d3531d42e9 /src/file.cpp
parentEliminate a number of compile warnings (diff)
downloadinkscape-284168f36651a5ae3805a34214a5f732cf05c4ff.tar.gz
inkscape-284168f36651a5ae3805a34214a5f732cf05c4ff.zip
small fix in export to ocal gnome_vfs function calls
(bzr r3554)
Diffstat (limited to 'src/file.cpp')
-rw-r--r--src/file.cpp7
1 files changed, 1 insertions, 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;