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:
authorMarius Ungureanu <marius.ungureanu@xamarin.com>2015-06-17 00:13:34 +0300
committerMarius Ungureanu <marius.ungureanu@xamarin.com>2015-06-17 00:40:42 +0300
commitbe00174229b0115a88688e639171a98381b20cf8 (patch)
tree86634eeb9abaa2aa3512cb5f94652ec8a76bdb1d /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs
parentfc3170531a206bddcf4e6011cccfe4a879fa30fa (diff)
[Misc] 1/4 batch of checking disposes of dialogs.
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs
index 9ba7974bee..38d4b566a4 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs
@@ -107,8 +107,8 @@ namespace MonoDevelop.Ide.Commands
{
protected override void Run ()
{
- var dlg = new NewFileDialog (null, null); // new file seems to fail if I pass the project IdeApp.ProjectOperations.CurrentSelectedProject
- MessageService.ShowCustomDialog (dlg, IdeApp.Workbench.RootWindow);
+ using (var dlg = new NewFileDialog (null, null)) // new file seems to fail if I pass the project IdeApp.ProjectOperations.CurrentSelectedProject
+ MessageService.ShowCustomDialog (dlg, IdeApp.Workbench.RootWindow);
}
}