Switch from GPLv2 to GPLv2+
[fw/altos] / altosui / AltosLanded.java
index 50c1ea31fe9e3105b8134fdd8ba1d01404f71084..ded085376fa3fb8ff35c302eaa17ba5b2e93b735 100644 (file)
@@ -3,7 +3,8 @@
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -21,8 +22,8 @@ import java.awt.*;
 import java.awt.event.*;
 import javax.swing.*;
 import java.io.*;
-import org.altusmetrum.altoslib_5.*;
-import org.altusmetrum.altosuilib_3.*;
+import org.altusmetrum.altoslib_11.*;
+import org.altusmetrum.altosuilib_11.*;
 
 public class AltosLanded extends AltosUIFlightTab implements ActionListener {
 
@@ -151,6 +152,12 @@ public class AltosLanded extends AltosUIFlightTab implements ActionListener {
                return "Landed";
        }
 
+       public void show(AltosState state, AltosListenerState listener_state) {
+               super.show(state, listener_state);
+               if (reader.backing_file() != null)
+                       graph.setEnabled(true);
+       }
+
        public AltosLanded(AltosFlightReader in_reader) {
                reader = in_reader;