diff --git a/platform/lang-impl/src/com/intellij/ide/util/gotoByName/ChooseByNamePopup.java b/platform/lang-impl/src/com/intellij/ide/util/gotoByName/ChooseByNamePopup.java index 959bd8507edd..9713b315d50a 100644 --- a/platform/lang-impl/src/com/intellij/ide/util/gotoByName/ChooseByNamePopup.java +++ b/platform/lang-impl/src/com/intellij/ide/util/gotoByName/ChooseByNamePopup.java @@ -199,8 +199,8 @@ public class ChooseByNamePopup extends ChooseByNameBase implements ChooseByNameP return; } + myModel.saveInitialCheckBoxState(myCheckBox.isSelected()); if (isOk) { - myModel.saveInitialCheckBoxState(myCheckBox.isSelected()); final List chosenElements = getChosenElements(); if (chosenElements != null) {