Browse Source

bug fix遍历问题

master
XiaXiang 8 years ago
parent
commit
842f691442
  1. 2
      designer/src/com/fr/design/mainframe/alphafine/search/manager/RecentSearchManager.java
  2. 2
      designer/src/com/fr/design/mainframe/alphafine/search/manager/RecommendSearchManager.java

2
designer/src/com/fr/design/mainframe/alphafine/search/manager/RecentSearchManager.java

@ -227,7 +227,7 @@ public class RecentSearchManager extends XMLFileManager implements AlphaFineSear
while (modelIterator.hasNext()) {
AlphaCellModel model = modelIterator.next();
if (model.getType() == CellType.ACTION && !((ActionModel) model).getAction().isEnabled()) {
resultModelList.remove(model);
modelIterator.remove();
}
}

2
designer/src/com/fr/design/mainframe/alphafine/search/manager/RecommendSearchManager.java

@ -73,7 +73,7 @@ public class RecommendSearchManager implements AlphaFineSearchProcessor {
while (modelIterator.hasNext()) {
AlphaCellModel model = modelIterator.next();
if (model.getType() == CellType.ACTION && !((ActionModel) model).getAction().isEnabled()) {
recommendModelList.remove(model);
modelIterator.remove();
}
}

Loading…
Cancel
Save