altosui: Don't open command window when --graph is provided
[fw/altos] / altosui / AltosUI.java
index 74e074632b81a263f27b939fee753067e92d28c4..f50c32e3d38127d2e98e307f85dfa6e449bd56ce 100644 (file)
@@ -612,15 +612,13 @@ public class AltosUI extends AltosUIFrame {
                                        File file = new File(args[i]);
                                        switch (process) {
                                        case process_none:
                                        File file = new File(args[i]);
                                        switch (process) {
                                        case process_none:
-                                       case process_graph:
                                                if (altosui == null)
                                                        altosui = new AltosUI();
                                                if (altosui == null)
                                                        altosui = new AltosUI();
+                                       case process_graph:
                                                if (!process_graph(file))
                                                        ++errors;
                                                break;
                                        case process_replay:
                                                if (!process_graph(file))
                                                        ++errors;
                                                break;
                                        case process_replay:
-                                               if (altosui == null)
-                                                       altosui = new AltosUI();
                                                if (!process_replay(file))
                                                        ++errors;
                                                break;
                                                if (!process_replay(file))
                                                        ++errors;
                                                break;