Skip to content

Commit aa5e422

Browse files
committed
#1231 - rename project quickfix is cancellable
1 parent 6eac8f7 commit aa5e422

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

RetailCoder.VBE/Inspections/DefaultProjectNameInspectionResult.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Collections.Generic;
2+
using System.Windows.Forms;
23
using Antlr4.Runtime;
34
using Rubberduck.Parsing.Symbols;
45
using Rubberduck.Parsing.VBA;
@@ -7,6 +8,7 @@
78
using Rubberduck.UI.Refactorings;
89
using Rubberduck.VBEditor;
910
using Rubberduck.VBEditor.VBEInterfaces.RubberduckCodePane;
11+
using MessageBox = Rubberduck.UI.MessageBox;
1012

1113
namespace Rubberduck.Inspections
1214
{
@@ -57,6 +59,7 @@ public override void Fix()
5759
var factory = new RenamePresenterFactory(vbe, view, _state, new MessageBox(), _wrapperFactory);
5860
var refactoring = new RenameRefactoring(factory, new ActiveCodePaneEditor(vbe, _wrapperFactory), new MessageBox(), _state);
5961
refactoring.Refactor(_target);
62+
IsCancelled = view.DialogResult == DialogResult.Cancel;
6063
}
6164
}
6265

0 commit comments

Comments
 (0)