From 0fa281fd7369348dbdeadcecfebb20b73082e93e Mon Sep 17 00:00:00 2001 From: Bastian Bloessl <mail@bastibl.net> Date: Fri, 7 Jun 2019 17:09:49 +0200 Subject: grc: introduce flag 'show_id' to show block id useful for variable and parameter blocks, but maybe others too --- grc/gui/VariableEditor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'grc/gui/VariableEditor.py') 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. -- cgit v1.2.3