controls/VariablePanel.py
changeset 1772 c3679f96020b
parent 1768 691083b5682a
child 1773 38fde37c3766
--- a/controls/VariablePanel.py	Sat Aug 19 00:11:12 2017 +0300
+++ b/controls/VariablePanel.py	Sat Aug 19 00:30:22 2017 +0300
@@ -50,9 +50,17 @@
 
 def GetVariableTableColnames(location):
     _ = NoTranslate
-    if location:
-    	return ["#", _("Name"), _("Class"), _("Type"), _("Location"), _("Initial Value"), _("Option"), _("Documentation")]
-    return ["#", _("Name"), _("Class"), _("Type"), _("Initial Value"), _("Option"), _("Documentation")]
+    cols = ["#",
+            _("Name"),
+            _("Class"),
+            _("Type"),
+            _("Location"),
+            _("Initial Value"),
+            _("Option"),
+            _("Documentation")]
+    if not location:
+        del cols[4]  # remove 'Location' column
+    return cols
 
 
 def GetOptions(constant=True, retain=True, non_retain=True):