Fixed bug in Categories._deleteCategories.
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 15 Jul 2004 20:27:43 +0000 (20:27 +0000)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 15 Jul 2004 20:27:43 +0000 (20:27 +0000)
src/gkofoto/categories.py

index 0445b05..a8ca362 100644 (file)
@@ -260,7 +260,7 @@ class Categories:
         if result == gtk.RESPONSE_OK:
             for categoryId in self.__selectedCategoriesIds:
                 category = env.shelf.getCategory(categoryId)
-                for child in category.getChildren():
+                for child in list(category.getChildren()):
                     # The backend automatically disconnects childs
                     # when a category is deleted, but we do it ourself
                     # to make sure that the treeview widget is