diff options
author | Felix Kehrer <felix.kehrer@gmail.com> | 2018-06-18 23:21:25 +0200 |
---|---|---|
committer | Felix Kehrer <felix.kehrer@gmail.com> | 2018-06-18 23:21:25 +0200 |
commit | 410eadc051a76cc7bae782efd15fe708439c2132 (patch) | |
tree | fbfba14f7d361f44efbc7ca87fff5b50860febc0 /src | |
parent | fbc917477d106be774d9c093ac42319aeadf1eff (diff) | |
download | sepm-groupproject-410eadc051a76cc7bae782efd15fe708439c2132.tar.gz sepm-groupproject-410eadc051a76cc7bae782efd15fe708439c2132.tar.xz sepm-groupproject-410eadc051a76cc7bae782efd15fe708439c2132.zip |
Only call reset when needed, and then only once instead of twice #28864
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/ac/tuwien/sepm/assignment/groupphase/missioncontrol/controller/RegistrationWindowController.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/missioncontrol/controller/RegistrationWindowController.java b/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/missioncontrol/controller/RegistrationWindowController.java index e540b9f..3bde468 100644 --- a/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/missioncontrol/controller/RegistrationWindowController.java +++ b/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/missioncontrol/controller/RegistrationWindowController.java @@ -202,7 +202,6 @@ public class RegistrationWindowController { public void cancel() { LOG.debug("Hyperlink \"schließen\" clicked"); - reset(); this.setVisible(false); createOperationController.setVisible(true); } @@ -265,8 +264,8 @@ public class RegistrationWindowController { } public void setVisible(boolean b) { + if (b) reset(); root.setVisible(b); - reset(); } public void tfVehicleSearch_TextChanged(KeyEvent keyEvent) { |