Set default title of the root album when creating a new shelf.
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 22 Jul 2004 14:03:13 +0000 (14:03 +0000)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 22 Jul 2004 14:03:13 +0000 (14:03 +0000)
src/lib/kofoto/shelf.py

index a5ec8fb..7e0fada 100644 (file)
@@ -1158,6 +1158,8 @@ class Shelf:
         self.connection.commit()
 
         self.begin()
+        rootalbum = self.getRootAlbum()
+        rootalbum.setAttribute(u"title", u"Root album")
         orphansalbum = self.createAlbum(u"orphans", u"orphans")
         orphansalbum.setAttribute(u"title", u"Orphans")
         orphansalbum.setAttribute(