JAL-879 adding to _rnaList will trigger another onUINewStructure event and cause...
authorjprocter <jprocter@compbio.dundee.ac.uk>
Fri, 24 Aug 2012 14:27:15 +0000 (15:27 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Fri, 24 Aug 2012 15:39:04 +0000 (16:39 +0100)
src/jalview/gui/AppVarnaBinding.java

index 0bc84ce..5b7d654 100644 (file)
@@ -810,7 +810,12 @@ public class AppVarnaBinding extends jalview.ext.varna.JalviewVarnaBinding
 
   public void onUINewStructure(VARNAConfig v, RNA r)
   {
-    _rnaList.add(v, r, "", true);
+    // patch to fix infinite loop
+    // The problem is that onUINewStructure is called when user clicks 
+    // check with Yann about whether Jalview should do anything with this event.
+    // e.g. if user has used VARNA's menu to import a structure .. Jalview may need to be told which structure is displayed.
+    
+    // _rnaList.add(v, r, "", true);
   }
 
   public void onWarningEmitted(String s)