selection always moves to the last element when an action was called

This commit is contained in:
Konstantin Bulenkov
2012-10-09 15:32:28 +02:00
parent 581874ef07
commit 65e2d7717a
@@ -376,12 +376,6 @@ public class NavBarPanel extends JPanel implements DataProvider, PopupOwner, Dis
index++;
}
//IDEA-89401
if (myModel.getSelectedIndex() != myModel.size() - 1 && !hasFocus() && !isNodePopupShowing()) {
myModel.setSelectedIndex(myModel.size() -1);
return true;
}
return false;
} else {
return true;