diff options
-rwxr-xr-x[-rw-r--r--] | vsplugin/src/Util.cs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/vsplugin/src/Util.cs b/vsplugin/src/Util.cs index 0c641f2441f..542a9f5bdd4 100644..100755 --- a/vsplugin/src/Util.cs +++ b/vsplugin/src/Util.cs @@ -1211,16 +1211,19 @@ namespace Ice.VisualStudio { if(project == null || String.IsNullOrEmpty(name)) { - return ; + return; } if(project.Globals == null) { return; } - - project.Globals[name] = value; - project.Globals.set_VariablePersists(name, true); + + project.Globals[name] = value; + if(!project.Globals.get_VariableExists(name)) + { + project.Globals.set_VariablePersists(name, true); + } } public static String getPrecompileHeader(Project project) |