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:
e88c8b6
)
JAL-4159 disable the score model combo box when pasimap is selected
author
Jim Procter
<jprocter@dundee.ac.uk>
Thu, 23 May 2024 17:17:12 +0000
(18:17 +0100)
committer
Jim Procter
<jprocter@dundee.ac.uk>
Thu, 23 May 2024 17:17:12 +0000
(18:17 +0100)
src/jalview/gui/CalculationChooser.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/CalculationChooser.java
b/src/jalview/gui/CalculationChooser.java
index
3b7ca81
..
3775c47
100644
(file)
--- 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))
{