From 5da2ede51d2189bc04a84431fd48ade8d0badc93 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Wed, 4 May 2016 14:30:02 +0200 Subject: [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 --- .../main/java/org/openslx/dozmod/gui/window/LectureDetailsWindow.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dozentenmodul/src/main/java') 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); -- cgit v1.2.3-55-g7522