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:35:04 +0300
committerMarius Ungureanu <marius.ungureanu@xamarin.com>2015-06-17 00:41:44 +0300
commit43212a78e5d16847fab5313e3e68c77ac2fc8f6f (patch)
tree8a0addb74f989e62628890377d745c81c4666d76 /main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Extensions
parent2a403915559c6af17ea779b26e656bf634153b09 (diff)
[Misc] 3/4 batch of checking disposes of dialogs.
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Extensions')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Extensions/AlertDialog.cs10
1 files changed, 6 insertions, 4 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Extensions/AlertDialog.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Extensions/AlertDialog.cs
index c1158c1ee8..8bd896d2bc 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Extensions/AlertDialog.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Extensions/AlertDialog.cs
@@ -94,10 +94,12 @@ namespace MonoDevelop.Components.Extensions
}
if (!data.Message.CancellationToken.IsCancellationRequested) {
- MessageService.ShowCustomDialog (alertDialog, data.TransientFor);
- if (alertDialog.ApplyToAll)
- data.ApplyToAll = true;
- data.ResultButton = alertDialog.ResultButton;
+ using (alertDialog) {
+ MessageService.ShowCustomDialog (alertDialog, data.TransientFor);
+ if (alertDialog.ApplyToAll)
+ data.ApplyToAll = true;
+ data.ResultButton = alertDialog.ResultButton;
+ }
}
alertDialog = null;