[Dextrose] [PATCH] uy#1242#note-29, sl#3346: Disable palette-popup per entry during batch-operations mode.
Ajay Garg
ajay at activitycentral.com
Mon Mar 5 12:08:20 EST 2012
This results in a consistent behaviour, as only copy and erase are supported
in batch-operations; whereas there are more options in per-entry mode.
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 b8f562f..8522dca 100644
--- a/src/jarabe/journal/listview.py
+++ b/src/jarabe/journal/listview.py
@@ -720,6 +720,11 @@ class CellRendererActivityIcon(CellRendererIcon):
if not self._show_palette:
return None
+ # Also, if we are in batch-operations mode, return 'None'
+ from jarabe.journal.journalactivity import get_journal
+ if get_journal().is_editing_mode_present():
+ return None
+
tree_model = self.tree_view.get_model()
metadata = tree_model.get_metadata(self.props.palette_invoker.path)
--
1.7.4.4
More information about the Dextrose
mailing list