sometimes selection jumps to 0 when speedsearching

This commit is contained in:
Konstantin Bulenkov
2015-09-08 20:03:45 +02:00
parent 0694079302
commit a4197eac2b
@@ -1090,9 +1090,6 @@ public class Switcher extends AnAction implements DumbAware {
@Override
public void propertyChange(@NotNull PropertyChangeEvent evt) {
final JBList list = getSelectedList();
final Object value = list.getSelectedValue();
if (project.isDisposed()) {
myPopup.cancel();
return;
@@ -1107,11 +1104,6 @@ public class Switcher extends AnAction implements DumbAware {
files.getEmptyText().setText(StatusText.DEFAULT_EMPTY_TEXT);
toolWindows.getEmptyText().setText(StatusText.DEFAULT_EMPTY_TEXT);
}
files.repaint();
toolWindows.repaint();
if (value != null) {
ScrollingUtil.ensureSelectionExists(getSelectedList(list));
}
}
}