summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a320e0f)
raw | patch | inline | side by side (parent: a320e0f)
author | bdilly <bdilly@users.sourceforge.net> | |
Mon, 20 Aug 2007 17:49:02 +0000 (17:49 +0000) | ||
committer | bdilly <bdilly@users.sourceforge.net> | |
Mon, 20 Aug 2007 17:49:02 +0000 (17:49 +0000) |
src/file.cpp | patch | blob | history |
diff --git a/src/file.cpp b/src/file.cpp
index 0e8a084e33439c504e59f171a5ccd1965e3687b1..a08be62c0cfd47fd8586fbde2a47e4ea0b00daab 100644 (file)
--- a/src/file.cpp
+++ b/src/file.cpp
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;