Skip to content

Commit

Permalink
- resolves an issue when closing the project
Browse files Browse the repository at this point in the history
  • Loading branch information
7evenk committed Nov 27, 2017
1 parent 8ca7b54 commit b27cd22
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions TestProjectFileFunctions/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,16 @@ private void cmdCloseProject_Click(object sender, EventArgs e)
nd = (myTreeNode) nd.Parent;
}
treeStep7Project.Nodes.Remove(nd);

var fld = nd.myObject as IProjectFolder;
if (fld != null)
{
var dp = fld.Project as IDisposable;
if (dp != null)
{
dp.Dispose();
}
}
}

List<string> projects = new List<string>();
Expand Down

0 comments on commit b27cd22

Please sign in to comment.