diff options
author | Jonathan Bauer | 2016-05-04 14:30:02 +0200 |
---|---|---|
committer | Jonathan Bauer | 2016-05-04 14:30:02 +0200 |
commit | 5da2ede51d2189bc04a84431fd48ade8d0badc93 (patch) | |
tree | d5a70a3b7da591576a4dc56882e5e189b8ffa84d /dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureDetailsWindow.java | |
parent | [client] Wizard: change 'Schließen' to 'Minimieren' (diff) | |
download | tutor-module-5da2ede51d2189bc04a84431fd48ade8d0badc93.tar.gz tutor-module-5da2ede51d2189bc04a84431fd48ade8d0badc93.tar.xz tutor-module-5da2ede51d2189bc04a84431fd48ade8d0badc93.zip |
[client] only switch to 'Advanced' tab if its input fields contain errors
Side-effect: invalid input in advanced, then switch to the tab and save.
You get the error popup about advanced config but only switch to that tab
after clicking 'ok' on the message box
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureDetailsWindow.java')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureDetailsWindow.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureDetailsWindow.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureDetailsWindow.java index 97027cc5..3dd86974 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureDetailsWindow.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureDetailsWindow.java @@ -640,12 +640,12 @@ public class LectureDetailsWindow extends LectureDetailsWindowLayout implements : cboVersions.getItemAt(cboVersions.getSelectedIndex()).versionId; } // goto to advanced tab and check (by getting) the state of the textAreas - pnlTabs.setSelectedIndex(pnlTabs.indexOfTab("Erweitert")); currentAdvConf = ctlAdvancedConfigurator.getState(); if (currentAdvConf == null) { // getState() will return null only if it couldn't parse the rules // which means that the user got informed about what was invalid // So we just return here until the parsing works. + pnlTabs.setSelectedIndex(pnlTabs.indexOfTab("Erweitert")); return false; } metadataChanged |= (currentAdvConf.netRulesList != lecture.networkExceptions || currentAdvConf.runScriptText != lecture.runscript); |