Skip to content

Commit 17674bb

Browse files
committed
work off ActiveCodePane, ref. #2763
1 parent 5afbf98 commit 17674bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RetailCoder.VBE/UI/Command/AddTestMethodCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ protected override bool CanExecuteImpl(object parameter)
5757
return testModules.Any(a =>
5858
{
5959
var module = a.QualifiedName.QualifiedModuleName.Component.CodeModule;
60-
return module.Equals(_vbe.SelectedVBComponent.CodeModule);
60+
return module.Equals(_vbe.ActiveCodePane.CodeModule);
6161
});
6262
}
6363
catch (COMException)

0 commit comments

Comments
 (0)