From 7a8ce299d75adcadb9882e1a63afd0c2fb829561 Mon Sep 17 00:00:00 2001 From: mka Date: Thu, 17 Jan 2013 09:14:30 +0000 Subject: [PATCH] New study creation is improved. --- .../Siman/src/org/splat/simer/NewStudyAction.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Workspace/Siman/src/org/splat/simer/NewStudyAction.java b/Workspace/Siman/src/org/splat/simer/NewStudyAction.java index 95fd4cb..acdb825 100644 --- a/Workspace/Siman/src/org/splat/simer/NewStudyAction.java +++ b/Workspace/Siman/src/org/splat/simer/NewStudyAction.java @@ -123,13 +123,12 @@ public class NewStudyAction extends Action { // Addition of the entered project context SimulationContext.Properties cprop = new SimulationContext.Properties(); - - SimulationContextType product = getSimulationContextService() - .selectType("product"); - - SimulationContext testContext = getSimulationContextService().selectSimulationContext(product, value); - if (valid == 0) { // Input of new project context + SimulationContextType product = getSimulationContextService() + .selectType("product"); + + SimulationContext testContext = getSimulationContextService().selectSimulationContext(product, value); + if (testContext == null) { cprop.setType( getSimulationContextService().selectType("product")) -- 2.39.2