From e15ec3ddc9cde7fce45cdb0e961392f4a089b9d4 Mon Sep 17 00:00:00 2001 From: Alex Z Date: Tue, 10 Mar 2020 00:57:17 +0300 Subject: [PATCH] fixed bug with creating new project --- src/UniversalValveToolbox/UI/FormProjects.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UniversalValveToolbox/UI/FormProjects.cs b/src/UniversalValveToolbox/UI/FormProjects.cs index 476b22f..309d2f0 100644 --- a/src/UniversalValveToolbox/UI/FormProjects.cs +++ b/src/UniversalValveToolbox/UI/FormProjects.cs @@ -86,7 +86,7 @@ namespace UniversalValveToolbox { } private void comboBoxEngine_SelectedIndexChanged(object sender, EventArgs e) { - if (model.SelectProject != null) + if (model.SelectProject != null && comboBoxEngine.SelectedItem != null) model.SelectProject.Engine = ((EngineDtoModel)comboBoxEngine.SelectedItem).Appid; }