diff options
| author | Paul Buetow <paul@buetow.org> | 2008-05-22 21:51:39 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-05-22 21:51:39 +0000 |
| commit | c7048c1fcccd0a599134b03fd326e064c56c6813 (patch) | |
| tree | 2ff2974c7cdfc6d0a08fbce9ad45bb9bcc0cb0d7 /sources/prefs/editors/VSSimulationEditor.java | |
| parent | 83ffbb7e36e0c6502c90a358eb8fbb1ab354db15 (diff) | |
Simulator frame closes now, if you press 'cancel'
Diffstat (limited to 'sources/prefs/editors/VSSimulationEditor.java')
| -rw-r--r-- | sources/prefs/editors/VSSimulationEditor.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sources/prefs/editors/VSSimulationEditor.java b/sources/prefs/editors/VSSimulationEditor.java index a45cfa5..ca43962 100644 --- a/sources/prefs/editors/VSSimulationEditor.java +++ b/sources/prefs/editors/VSSimulationEditor.java @@ -56,6 +56,10 @@ public class VSSimulationEditor extends VSBetterEditor { } simulation.updateFromPrefs(); + } else if (actionCommand.equals(prefs.getString("lang.cancel"))) { + if (!dontStartNewSimulation) + simulatorFrame.dispose(); + } else if (actionCommand.equals(prefs.getString("lang.ok"))) { savePrefs(); if (expertModeChanged()) { |
