Skip to content

Commit 16603ab

Browse files
committed
#1231 rename declaration quickfix is cancellable
1 parent aa5e422 commit 16603ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

RetailCoder.VBE/Inspections/UseMeaningfulNameInspectionResult.cs

Lines changed: 2 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;
@@ -60,6 +61,7 @@ public override void Fix()
6061
var factory = new RenamePresenterFactory(vbe, view, _state, _messageBox, _wrapperFactory);
6162
var refactoring = new RenameRefactoring(factory, new ActiveCodePaneEditor(vbe, _wrapperFactory), _messageBox, _state);
6263
refactoring.Refactor(_target);
64+
IsCancelled = view.DialogResult == DialogResult.Cancel;
6365
}
6466
}
6567

0 commit comments

Comments
 (0)