From: Jim Procter Date: Thu, 23 May 2024 17:17:12 +0000 (+0100) Subject: JAL-4159 disable the score model combo box when pasimap is selected X-Git-Tag: Release_2_11_4_0~31^2~6^2~2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=a03d076e1e1719fa60f0ee9b0e88f1ab5570a1d1;p=jalview.git JAL-4159 disable the score model combo box when pasimap is selected --- diff --git a/src/jalview/gui/CalculationChooser.java b/src/jalview/gui/CalculationChooser.java index 3b7ca81..3775c47 100644 --- a/src/jalview/gui/CalculationChooser.java +++ b/src/jalview/gui/CalculationChooser.java @@ -576,6 +576,7 @@ public class CalculationChooser extends JPanel } // finally, update the model comboBox.setModel(model); + comboBox.setEnabled(model.getSize()>0); } @@ -601,7 +602,7 @@ public class CalculationChooser extends JPanel ScoreModels scoreModels = ScoreModels.getInstance(); for (ScoreModelI sm : scoreModels.getModels()) { - if ((!nucleotide && sm.isProtein() || nucleotide && sm.isDNA() + if (!forPasimap && (!nucleotide && sm.isProtein() || nucleotide && sm.isDNA() || sm.isSecondaryStructure() && ssPresent)) {