core: fix signal emission on added container
authorJens Georg <mail@jensge.org>
Mon, 21 Sep 2009 09:21:42 +0000 (11:21 +0200)
committerJens Georg <mail@jensge.org>
Mon, 21 Sep 2009 11:01:27 +0000 (13:01 +0200)
src/rygel/rygel-media-db.vala

index 05e3f97..1c25477 100644 (file)
@@ -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");
         }