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:
authorLluis Sanchez <slluis.devel@gmail.com>2015-08-25 11:36:45 +0300
committerLluis Sanchez <slluis.devel@gmail.com>2015-08-25 11:36:45 +0300
commit0aef1c7aabdcce6c728e907e0bb13b5626f7b977 (patch)
tree54b21eb6cdb60617fae344e07888fed1454e7639
parent4bb836e9be8384ebfb19fc612f1dc91134b386fc (diff)
parentf5cc52bb9dd71fd2bf7676912193653ddcaf61b1 (diff)
Merge pull request #1010 from mono/monodevelop-5.9-branch-c5sr4-fix-33065monodevelop-5.9.6.20
Fixed "Bug 33065 - Dangerous: refactoring operations drop the null
-rw-r--r--main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoringService.cs7
1 files changed, 2 insertions, 5 deletions
diff --git a/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoringService.cs b/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoringService.cs
index 3036b1d334..9e18efff67 100644
--- a/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoringService.cs
+++ b/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoringService.cs
@@ -306,15 +306,12 @@ namespace MonoDevelop.Refactoring
var text = GettextCatalog.GetString (
@"WARNING: The Xamarin Studio refactoring operations do not yet support C# 6.
-You may continue to use refactoring operations with C# 6, however you should check the results carefully to make sure that
-they have not made incorrect changes to your code. In particular, the ""?."" null propagating dereference will be changed
-to ""."", a simple dereference, which can cause unexpected NullReferenceExceptions at runtime.
-");
+You may continue to use refactoring operations with C# 6, however you should check the results carefully to make sure that they have not made incorrect changes to your code. In particular, the ""?."" null propagating dereference will be changed to ""."", a simple dereference, which can cause unexpected NullReferenceExceptions at runtime.");
var message = new QuestionMessage (text);
message.Buttons.Add (useRefactoringsButton);
message.Buttons.Add (AlertButton.Cancel);
message.Icon = Gtk.Stock.DialogWarning;
- message.DefaultButton = 2;
+ message.DefaultButton = 1;
var result = MessageService.AskQuestion (message);
if (result == AlertButton.Cancel)