altosui: Re-add a couple of "unused" values
authorKeith Packard <keithp@keithp.com>
Thu, 18 Oct 2012 23:19:38 +0000 (16:19 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 18 Oct 2012 23:19:38 +0000 (16:19 -0700)
The values in these calls aren't needed, but the side-effects are, so
add them back in.

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

index f8c24b16c662a2498cb6b4570f087461f9c198f5..3ccfa76c3f74334c39f6bd34b5ead0b6799935e3 100644 (file)
@@ -286,7 +286,7 @@ public class AltosFlashUI
                if (!select_source_file())
                        return;
                build_dialog();
-               //flash_task    f = new flash_task(this);
+               flash_task      f = new flash_task(this);
        }
 
        static void show(JFrame frame) {
index 3ea4d0fd3548eb06bc296f35170739e7c0d22674..4e939b885d5bf446352cb9688de5ae6273736652 100644 (file)
@@ -421,7 +421,7 @@ public class AltosSiteMap extends JScrollPane implements AltosFlightDisplay {
        public AltosSiteMap(int in_radius) {
                radius = in_radius;
 
-               //GrabNDrag scroller = new GrabNDrag(comp);
+               GrabNDrag scroller = new GrabNDrag(comp);
 
                comp.setLayout(layout);
 
index a28c07b06a9c5202cb71989b99012332eedc587e..f6ee7e06910d11f6a90edffdace729bca9206979 100644 (file)
@@ -163,7 +163,7 @@ public class AltosUIPreferences extends AltosPreferences {
                }
        }
        public static void set_serial_debug(boolean new_serial_debug) {
-               AltosLink.set_debug(serial_debug);
+               AltosLink.set_debug(new_serial_debug);
                synchronized (backend) {
                        serial_debug = new_serial_debug;
                        backend.putBoolean(serialDebugPreference, serial_debug);