summaryrefslogtreecommitdiff
path: root/grc/gui/Actions.py
diff options
context:
space:
mode:
authorSebastian Koslowski <koslowski@kit.edu>2015-11-24 16:32:49 +0100
committerSebastian Koslowski <koslowski@kit.edu>2015-11-24 16:36:10 +0100
commit461152d46e6db790e37b09bd3b92035b62d7091f (patch)
treed8afb8b1618c78e6413bc3d21546edd3d5fc2a46 /grc/gui/Actions.py
parent62a0aabd31b48e4c21cd032010325ae2ca7e7599 (diff)
grc: fix Action to str method
Diffstat (limited to 'grc/gui/Actions.py')
-rw-r--r--grc/gui/Actions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/grc/gui/Actions.py b/grc/gui/Actions.py
index d646722df1..1322dca874 100644
--- a/grc/gui/Actions.py
+++ b/grc/gui/Actions.py
@@ -98,9 +98,9 @@ class _ActionBase(object):
The string representation should be the name of the action id.
Try to find the action id for this action by searching this module.
"""
- for name, value in globals():
+ for name, value in globals().iteritems():
if value == self:
- return value
+ return name
return self.get_name()
def __repr__(self): return str(self)