Skip to content

Commit

Permalink
Merge pull request rubberduck-vba#1076 from rubberduck-vba/quickfixfix
Browse files Browse the repository at this point in the history
enable "apply quick fix" if one is available (fixes rubberduck-vba#1075)
  • Loading branch information
Hosch250 committed Feb 11, 2016
2 parents 6637492 + 1ec0af8 commit 5015d6f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ private void ExecuteQuickFixCommand(object parameter)

private bool CanExecuteQuickFixCommand(object parameter)
{
return !IsBusy && SelectedItem is IInspection;
var quickFix = parameter as CodeInspectionQuickFix;
return !IsBusy && quickFix != null;
}

private bool _canExecuteQuickFixInModule;
Expand Down

0 comments on commit 5015d6f

Please sign in to comment.