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:
3d37195
)
JAL-2808 ensure pattern field re-enabled when needed for condition
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Wed, 7 Feb 2018 15:20:29 +0000
(15:20 +0000)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Wed, 7 Feb 2018 15:20:29 +0000
(15:20 +0000)
src/jalview/gui/FeatureTypeSettings.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/FeatureTypeSettings.java
b/src/jalview/gui/FeatureTypeSettings.java
index
5480f5d
..
6eb583c
100644
(file)
--- a/
src/jalview/gui/FeatureTypeSettings.java
+++ b/
src/jalview/gui/FeatureTypeSettings.java
@@
-1408,10
+1408,7
@@
public class FeatureTypeSettings extends JalviewDialog
* disable pattern field for condition 'Present / NotPresent'
*/
Condition selectedCondition = (Condition) condCombo.getSelectedItem();
- if (!selectedCondition.needsAPattern())
- {
- patternField.setEnabled(false);
- }
+ patternField.setEnabled(selectedCondition.needsAPattern());
/*
* if a numeric condition is selected, show the value range
@@
-1653,6
+1650,7
@@
public class FeatureTypeSettings extends JalviewDialog
if (pattern.length() == 0 && cond.needsAPattern())
{
+ valueField.setEnabled(true); // ensure pattern field is enabled!
return false;
}