Close serial port if Download/Delete dialog is cancelled.
authorMike Beattie <mike@ethernal.org>
Sun, 16 Jan 2011 18:56:53 +0000 (07:56 +1300)
committerMike Beattie <mike@ethernal.org>
Sun, 16 Jan 2011 18:56:53 +0000 (07:56 +1300)
Signed-off-by: Mike Beattie <mike@ethernal.org>
altosui/AltosEepromManage.java

index 2704f883c46d4b1869a8532b8aa9c5b87c8a286c..c7efe478e5f652cf5d2d9a678fcb23cfe6840a47 100644 (file)
@@ -146,6 +146,8 @@ public class AltosEepromManage implements ActionListener {
                                                else
                                                        finish();
                                        }
+                               } else {
+                                       finish();
                                }
                        } catch (FileNotFoundException ee) {
                                JOptionPane.showMessageDialog(frame,