projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix mailing list reference to use mailman3 path
[fw/altos]
/
altosui
/
AltosFlightStatusUpdate.java
diff --git
a/altosui/AltosFlightStatusUpdate.java
b/altosui/AltosFlightStatusUpdate.java
index 6b48a2c01d3cd63cc5b28d4fdd37f4254beb9abc..674ab2afe89ee7d27d441e8032c608f475ff4044 100644
(file)
--- a/
altosui/AltosFlightStatusUpdate.java
+++ b/
altosui/AltosFlightStatusUpdate.java
@@
-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
*
* 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
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
@@
-18,16
+19,20
@@
package altosui;
import java.awt.event.*;
package altosui;
import java.awt.event.*;
-import org.altusmetrum.altoslib.*;
+import org.altusmetrum.altoslib
_14
.*;
public class AltosFlightStatusUpdate implements ActionListener {
public class AltosFlightStatusUpdate implements ActionListener {
- public AltosState saved_state;
- AltosFlightStatus flightStatus;
+ public AltosState saved_state;
+ public AltosListenerState saved_listener_state;
+ AltosFlightStatus flightStatus;
public void actionPerformed (ActionEvent e) {
public void actionPerformed (ActionEvent e) {
- if (saved_state != null)
- flightStatus.show(saved_state, 0);
+ if (saved_state != null) {
+ if (saved_listener_state == null)
+ saved_listener_state = new AltosListenerState();
+ flightStatus.show(saved_state, saved_listener_state);
+ }
}
public AltosFlightStatusUpdate (AltosFlightStatus in_flightStatus) {
}
public AltosFlightStatusUpdate (AltosFlightStatus in_flightStatus) {