[bijiben/gnome-3-14] ownCloud : use create_file before replace_contents
- From: Pierre-Yves Luyten <pyluyten src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben/gnome-3-14] ownCloud : use create_file before replace_contents
- Date: Mon, 10 Nov 2014 22:49:44 +0000 (UTC)
commit 3bc197568858501cc042b83c38e2878d46f981df
Author: Pierre-Yves Luyten <py luyten fr>
Date: Sun Nov 9 00:24:12 2014 +0100
ownCloud : use create_file before replace_contents
src/libbiji/provider/biji-own-cloud-note.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/libbiji/provider/biji-own-cloud-note.c b/src/libbiji/provider/biji-own-cloud-note.c
index 7512608..b3568bc 100644
--- a/src/libbiji/provider/biji-own-cloud-note.c
+++ b/src/libbiji/provider/biji-own-cloud-note.c
@@ -244,6 +244,7 @@ create_new_file (BijiOwnCloudNote *self, const gchar *basename)
basename);
g_object_set (self->priv->id, "path", key, NULL);
+ g_file_create (self->priv->location, G_FILE_CREATE_NONE, NULL, NULL);
ocloud_note_save (note);
ocloud_note_ensure_ressource (note);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]