Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandy Armstrong <sandy@xamarin.com>2019-09-12 01:49:06 +0300
committermonojenkins <jo.shields+jenkins@xamarin.com>2019-09-12 03:53:35 +0300
commit52a381e15fc838deead5ca1117c2fa78bb527150 (patch)
tree45fd4d376a132eefc4d5ab81316074fbcc5ce87b /main/src/core/MonoDevelop.Ide
parentd22f4d85dafede102ee4a46e6eb4201f10492c12 (diff)
DebugApplicationDialog: Remember last values
But do not persist between runs of Visual Studio.
Diffstat (limited to 'main/src/core/MonoDevelop.Ide')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/EnvVarList.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/EnvVarList.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/EnvVarList.cs
index 65e85bbc8c..ede35f5fee 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/EnvVarList.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/EnvVarList.cs
@@ -70,8 +70,10 @@ namespace MonoDevelop.Ide.Gui.Components
public void LoadValues (IDictionary<string, string> values)
{
store.Clear ();
- foreach (KeyValuePair<string,string> val in values)
- store.AppendValues (val.Key, val.Value, true, null);
+ if (values != null) {
+ foreach (KeyValuePair<string,string> val in values)
+ store.AppendValues (val.Key, val.Value, true, null);
+ }
AppendInserter ();
}