IDEA-142128 When Preview tab is open, Find button navigates to the first found fragment

This commit is contained in:
Maxim.Mossienko
2015-07-02 14:24:22 +02:00
parent f9db138f31
commit cc1a85f7b3
@@ -669,15 +669,6 @@ public class FindDialog extends DialogWrapper {
}
private void doOKAction(boolean findAll) {
if (myResultsPreviewTable != null &&
myContent.getSelectedIndex() == RESULTS_PREVIEW_TAB_INDEX &&
myResultsPreviewTable.getSelectedRowCount() != 0 &&
!myModel.isReplaceState()
) {
navigateToSelectedUsage(myResultsPreviewTable);
return;
}
FindModel validateModel = myModel.clone();
applyTo(validateModel, findAll);