fixed bug with creating new project

This commit is contained in:
Alex Z 2020-03-10 00:57:17 +03:00
parent 4987788877
commit e15ec3ddc9

View File

@ -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;
}