diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2009-09-07 10:26:52 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2009-09-07 10:26:52 (GMT) |
commit | 549be18e280fd24cd6c2b16f21c144de4d6fe415 (patch) | |
tree | 574c71ae425f183653cc21acd91e585b9e94672a /src/jarabe/journal/listview.py | |
parent | 569bf1d6f3474a961417e0fdf7f0fb1b92ea933a (diff) |
Process non-ds object in the right way in Journal #1262
Diffstat (limited to 'src/jarabe/journal/listview.py')
-rw-r--r-- | src/jarabe/journal/listview.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/jarabe/journal/listview.py b/src/jarabe/journal/listview.py index 9d69419..5e829bc 100644 --- a/src/jarabe/journal/listview.py +++ b/src/jarabe/journal/listview.py @@ -263,6 +263,8 @@ class BaseListView(gtk.Bin): def __favorite_clicked_cb(self, cell, path): row = self._model[path] metadata = model.get(row[ListModel.COLUMN_UID]) + if not model.is_editable(metadata): + return if metadata.get('keep', 0) == '1': metadata['keep'] = '0' else: @@ -325,6 +327,9 @@ class BaseListView(gtk.Bin): self._scroll_position = self.tree_view.props.vadjustment.props.value logging.debug('ListView.__map_cb %r', self._scroll_position) + is_editable = self._query.get('mountpoints', '') == '/' + self.cell_title.props.editable = is_editable + def _is_query_empty(self): # FIXME: This is a hack, we shouldn't have to update this every time # a new search term is added. |