git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebf9526
)
JAL-1821 JAL-1759 make sure we wait around until the current script has finished...
author
Jim Procter
<jprocter@issues.jalview.org>
Wed, 5 Aug 2015 17:05:08 +0000
(18:05 +0100)
committer
Jim Procter
<jprocter@issues.jalview.org>
Wed, 5 Aug 2015 17:05:08 +0000
(18:05 +0100)
src/jalview/gui/AppJmol.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/AppJmol.java
b/src/jalview/gui/AppJmol.java
index
a16ea68
..
7876346
100644
(file)
--- a/
src/jalview/gui/AppJmol.java
+++ b/
src/jalview/gui/AppJmol.java
@@
-748,8
+748,22
@@
public class AppJmol extends StructureViewerBase
{
public void run()
{
- alignStructs_withAllAlignPanels();
- // jmb.superposeStructures(ap.av.getAlignment(), -1, null);
+ if (jmb.viewer.isScriptExecuting())
+ {
+ javax.swing.SwingUtilities.invokeLater(this);
+ try
+ {
+ Thread.sleep(5);
+ } catch (InterruptedException q)
+ {
+ }
+ ;
+ return;
+ }
+ else
+ {
+ alignStructs_withAllAlignPanels();
+ }
}
});
alignAddedStructures = false;