[bijiben] localNote: survey if trashed
- From: Pierre-Yves Luyten <pyluyten src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [bijiben] localNote: survey if trashed
- Date: Tue,  4 Mar 2014 22:11:39 +0000 (UTC)
commit 548e3d6c05851de0587e3cc63779d2047b3ac14f
Author: Pierre-Yves Luyten <py luyten fr>
Date:   Tue Mar 4 23:06:18 2014 +0100
    localNote: survey if trashed
 src/libbiji/biji-local-note.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/libbiji/biji-local-note.c b/src/libbiji/biji-local-note.c
index 9ce6273..3de3ec2 100644
--- a/src/libbiji/biji-local-note.c
+++ b/src/libbiji/biji-local-note.c
@@ -189,6 +189,7 @@ local_note_archive (BijiNoteObj *note)
 
   else
   {
+    self->priv->trashed = TRUE;
     g_object_unref (self->priv->location);
     self->priv->location = archive;
   }
@@ -246,6 +247,7 @@ local_note_restore (BijiItem *item, gchar **old_uuid)
   g_free (path);
   g_free (root_path);
 
+  self->priv->trashed = FALSE;
   self->priv->location = target;
   return retval;
 }
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]