summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-01-19 19:30:38 -0800
committerKeith Packard <keithp@keithp.com>2013-01-19 19:31:42 -0800
commitaed990c3a37249a111c783336afade7ecdda7546 (patch)
tree3b1c174dbdc6865092ad307e1213ada6a5838457
parent4646beb421ab5bec612dfe5e3c57e790b1f41203 (diff)
altosi: callsign could not be configured for AltosUI
An extra local variable called callsign_value was hiding the object field by the same name and preventing it from getting set to the right value Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--altosui/AltosConfigureUI.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/altosui/AltosConfigureUI.java b/altosui/AltosConfigureUI.java
index 0e411b03..392d7199 100644
--- a/altosui/AltosConfigureUI.java
+++ b/altosui/AltosConfigureUI.java
@@ -42,7 +42,7 @@ public class AltosConfigureUI
}
public void changedUpdate(DocumentEvent e) {
- if (callsign_value != null)
+ if (callsign_value != null)
AltosUIPreferences.set_callsign(callsign_value.getText());
}
@@ -81,7 +81,7 @@ public class AltosConfigureUI
/* Callsign setting */
pane.add(new JLabel("Callsign"), constraints(0, 1));
- JTextField callsign_value = new JTextField(AltosUIPreferences.callsign());
+ callsign_value = new JTextField(AltosUIPreferences.callsign());
callsign_value.getDocument().addDocumentListener(this);
callsign_value.setToolTipText("Callsign sent in packet mode");
pane.add(callsign_value, constraints(1, 2, GridBagConstraints.BOTH));