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 f8c24b1..3ccfa76 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 3ea4d0f..4e939b8 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 a28c07b..f6ee7e0 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);