[rygel] core: fix signal emission on added container



commit d8accd0e942444ed60daf7458e03c9e5096361f1
Author: Jens Georg <mail jensge org>
Date:   Mon Sep 21 11:21:42 2009 +0200

    core: fix signal emission on added container

 src/rygel/rygel-media-db.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/rygel/rygel-media-db.vala b/src/rygel/rygel-media-db.vala
index 05e3f97..1c25477 100644
--- a/src/rygel/rygel-media-db.vala
+++ b/src/rygel/rygel-media-db.vala
@@ -407,6 +407,10 @@ public class Rygel.MediaDB : Object {
             create_object (container);
             save_uris (container);
             rc = db.exec ("COMMIT");
+            if (rc == Sqlite.OK) {
+                object_added (container.id);
+                container_added (container.id);
+            }
         } catch (Error error) {
             rc = db.exec ("ROLLBACK");
         }



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