project groups are not sorted properly on welcome screen

This commit is contained in:
Konstantin Bulenkov
2017-07-13 14:22:29 +02:00
parent fb604512ea
commit d4c929ef95
@@ -450,10 +450,10 @@ public abstract class RecentProjectsManagerBase extends RecentProjectsManager im
}
private int getGroupIndex(ProjectGroup group) {
int index = -1;
int index = Integer.MAX_VALUE;
for (String path : group.getProjects()) {
final int i = projectPaths.indexOf(path);
if (index >= 0 && index > i) {
if (i >= 0 && index > i) {
index = i;
}
}