mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-75464 Jumping selection bug in Commit Changes Dialog (+ correction) [^kirill.l, maxim.m]
(cherry-picked from cea33ad)
This commit is contained in:
committed by
Kirill Likhodedov
parent
811f4b02d4
commit
ca9e21e8c0
@@ -328,9 +328,9 @@ public abstract class ChangesTreeList<T> extends JPanel implements TypeSafeDataP
|
||||
|
||||
if (myShowCheckboxes) {
|
||||
if (myIncludedChanges.size() > 0) {
|
||||
for (int i = 0; i < myList.getItemsCount(); i++) {
|
||||
Object elementAt = myList.getModel().getElementAt(i);
|
||||
if (myIncludedChanges.contains(elementAt)) {
|
||||
for (int i = 0; i < sortedChanges.size(); i++) {
|
||||
T t = sortedChanges.get(i);
|
||||
if (myIncludedChanges.contains(t)) {
|
||||
listSelection = i;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user