From a03d076e1e1719fa60f0ee9b0e88f1ab5570a1d1 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Thu, 23 May 2024 18:17:12 +0100 Subject: [PATCH] JAL-4159 disable the score model combo box when pasimap is selected --- src/jalview/gui/CalculationChooser.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) { -- 1.7.10.2