summaryrefslogtreecommitdiff
path: root/grc/gui/VariableEditor.py
diff options
context:
space:
mode:
authorBastian Bloessl <mail@bastibl.net>2019-06-07 17:09:49 +0200
committerMarcus Müller <marcus@hostalia.de>2019-06-29 13:58:54 +0200
commit0fa281fd7369348dbdeadcecfebb20b73082e93e (patch)
tree63a176d74f0b10eae82de6578ea244cbf018a6c0 /grc/gui/VariableEditor.py
parent2ff628894b645d22325db6569fdccb265f57fbe1 (diff)
grc: introduce flag 'show_id' to show block id
useful for variable and parameter blocks, but maybe others too
Diffstat (limited to 'grc/gui/VariableEditor.py')
-rw-r--r--grc/gui/VariableEditor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/grc/gui/VariableEditor.py b/grc/gui/VariableEditor.py
index 025d7799e1..d9c829ebcc 100644
--- a/grc/gui/VariableEditor.py
+++ b/grc/gui/VariableEditor.py
@@ -191,7 +191,7 @@ class VariableEditor(Gtk.VBox):
self.set_tooltip_text(error_message[-1])
else:
# Evaluate and show the value (if it is a variable)
- if block.key == "variable":
+ if block.is_variable:
evaluated = str(block.params['value'].evaluate())
self.set_tooltip_text(evaluated)
# Always set the text value.