Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@sugarlabs.org>2009-07-01 13:31:45 (GMT)
committer Tomeu Vizoso <tomeu@sugarlabs.org>2009-07-01 13:31:45 (GMT)
commitf5c01859cadf14f5fa737adb79449b21e79243b8 (patch)
tree0295927054e869d1e067fbbab29485fe6789030c /src
parent79978d0c64c7a36dbba6712697e4172f76005787 (diff)
Fix listening for changes in the activity list
Diffstat (limited to 'src')
-rw-r--r--src/jarabe/desktop/activitieslist.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jarabe/desktop/activitieslist.py b/src/jarabe/desktop/activitieslist.py
index 7379e61..299df14 100644
--- a/src/jarabe/desktop/activitieslist.py
+++ b/src/jarabe/desktop/activitieslist.py
@@ -190,7 +190,7 @@ class ListModel(gtk.TreeModelSort):
bundle_id = activity_info.get_bundle_id()
version = activity_info.get_activity_version()
favorite = activity_registry.is_bundle_favorite(bundle_id, version)
- for row in self:
+ for row in self._model:
if row[ListModel.COLUMN_BUNDLE_ID] == bundle_id and \
row[ListModel.COLUMN_VERSION] == version:
row[ListModel.COLUMN_FAVORITE] = favorite
@@ -200,7 +200,7 @@ class ListModel(gtk.TreeModelSort):
bundle_id = activity_info.get_bundle_id()
version = activity_info.get_activity_version()
favorite = activity_registry.is_bundle_favorite(bundle_id, version)
- for row in self:
+ for row in self._model:
if row[ListModel.COLUMN_BUNDLE_ID] == bundle_id and \
row[ListModel.COLUMN_VERSION] == version:
self.remove(row.iter)