# HG changeset patch
# User Laurent Bessard
# Date 1368563474 -7200
# Node ID 80a91fc915955bbb2ded70420f8e07d3d5e73756
# Parent  f9cf74053b7d51b0d664b58f404c6a693749804b
Fixed bug when drag'n dropping global in function variable panel (not possible according to standard)

diff -r f9cf74053b7d -r 80a91fc91595 controls/VariablePanel.py
--- a/controls/VariablePanel.py	Tue May 14 22:25:33 2013 +0200
+++ b/controls/VariablePanel.py	Tue May 14 22:31:14 2013 +0200
@@ -298,7 +298,8 @@
                         self.ParentWindow.Table.SetValue(row, col, values[0])
                         self.ParentWindow.Table.ResetView(self.ParentWindow.VariablesGrid)
                         self.ParentWindow.SaveValues()
-            elif (element_type not in ["config", "resource"] and values[1] == "Global" and self.ParentWindow.Filter in ["All", "Interface", "External"] or
+            elif (element_type not in ["config", "resource", "function"] and values[1] == "Global" and 
+                  self.ParentWindow.Filter in ["All", "Interface", "External"] or
                   element_type in ["config", "resource", "program"] and values[1] == "location"):
                 if values[1] == "location":
                     var_name = values[3]