Skip to content
Browse files

Default name of toggle group actions is 'UNDEFINED'.

Set name toggle group actions to 'UNDEFINED' when the
corresponding object (task or dock pane) is None. This
is slightly better than 'DELETED' as there might be other
reasons why the object is None.
  • Loading branch information...
1 parent 1946227 commit da07be8312187435d5ead59e56968e4ff1e567c5 @pberkes pberkes committed Nov 14, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 pyface/tasks/action/dock_pane_toggle_group.py
  2. +1 −1 pyface/tasks/action/task_toggle_group.py
View
2 pyface/tasks/action/dock_pane_toggle_group.py
@@ -42,7 +42,7 @@ def perform(self, event=None):
def _get_name(self):
if self.dock_pane is None:
- return 'DELETED DOCK TOGGLE'
+ return 'UNDEFINED'
return self.dock_pane.name
def _get_tooltip(self):
View
2 pyface/tasks/action/task_toggle_group.py
@@ -43,7 +43,7 @@ def perform(self, event=None):
def _get_name(self):
if self.task is None:
- return 'DELETED TASK TOGGLE'
+ return 'UNDEFINED'
return self.task.name
def _get_tooltip(self):

0 comments on commit da07be8

Please sign in to comment.
Something went wrong with that request. Please try again.