Script search history fixes - reading AS3 results

This commit is contained in:
Jindra Petřík
2021-02-22 22:32:07 +01:00
parent 573d9ca384
commit b82d6b62fe
6 changed files with 35 additions and 33 deletions

View File

@@ -170,10 +170,11 @@ public class MainFrameRibbonMenu extends MainFrameMenu {
int j = 0;
for (int i = indices.size() - 1; i >= 0; i--) {
String searched = Main.searchResultsStorage.getSearchedValueAt(i);
final int fi = indices.get(i);
String searched = Main.searchResultsStorage.getSearchedValueAt(fi);
RecentSearchesButton historyButton = new RecentSearchesButton(j + " " + searched, null);
historyButton.search = searched;
final int fi = i;
historyButton.addActionListener((ActionEvent ae) -> {
SearchResultsDialog sr;
if (swf.isAS3()) {