[bijiben] ownCloud: allow title to change, do not loose new notes



commit 121a316f6c86c9de14f7b00a1df1dc2522680d65
Author: Pierre-Yves Luyten <py luyten fr>
Date:   Fri Sep 13 00:33:37 2013 +0200

    ownCloud: allow title to change, do not loose new notes
    
    ownCloud notes have to specify to allow title to change anytime.
    Otherwise, new own Cloud notes would never have a title -
    nor a path.

 src/libbiji/provider/biji-own-cloud-note.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/libbiji/provider/biji-own-cloud-note.c b/src/libbiji/provider/biji-own-cloud-note.c
index be3e901..4bab13f 100644
--- a/src/libbiji/provider/biji-own-cloud-note.c
+++ b/src/libbiji/provider/biji-own-cloud-note.c
@@ -186,7 +186,7 @@ on_title_change                     (gpointer    user_data)
   old_title = self->priv->basename;
   new_title = biji_note_id_get_title (self->priv->id);
 
-  
+
   if (old_title == NULL)
   {
     if (new_title != NULL)
@@ -220,6 +220,7 @@ on_content_change                   (gpointer    user_data)
   g_return_if_fail (BIJI_IS_OWN_CLOUD_NOTE (user_data));
 
   note = user_data;
+  biji_note_obj_set_title_survives (note, FALSE);
   html = html_from_plain_text ((gchar*) biji_note_obj_get_raw_text (user_data));
   ocloud_note_set_html (note, html);
   g_free (html);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]