Fixed switching ABCs during search

This commit is contained in:
Jindra Pet��k
2013-07-06 08:02:43 +02:00
parent 8b7a4e36fc
commit 172473ae70
2 changed files with 6 additions and 1 deletions
@@ -493,7 +493,9 @@ public class ABCPanel extends JPanel implements ItemListener, ActionListener {
public void updateSearchPos() {
searchPos.setText((foundPos + 1) + "/" + found.size());
decompiledTextArea.setScript(found.get(foundPos), list);
ScriptPack pack = found.get(foundPos);
setAbc(pack.abc);
decompiledTextArea.setScript(pack, list);
hilightScript(found.get(foundPos));
decompiledTextArea.setCaretPosition(0);
SwingUtilities.invokeLater(new Runnable() {