altosui: Save frequency after setting it in AltosFlightUI
authorKeith Packard <keithp@keithp.com>
Tue, 9 Aug 2011 01:51:16 +0000 (18:51 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 9 Aug 2011 01:51:16 +0000 (18:51 -0700)
Otherwise we'll just save the old frequency.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/AltosFlightUI.java

index 8c3f821..c31e02b 100644 (file)
@@ -147,12 +147,12 @@ public class AltosFlightUI extends JFrame implements AltosFlightDisplay {
                        frequencies.addActionListener(new ActionListener() {
                                        public void actionPerformed(ActionEvent e) {
                                                double frequency = frequencies.frequency();
-                                               reader.save_frequency();
                                                try {
                                                        reader.set_frequency(frequency);
                                                } catch (TimeoutException te) {
                                                } catch (InterruptedException ie) {
                                                }
+                                               reader.save_frequency();
                                        }
                        });
                        c.gridx = 0;