Bugfix: load config

This commit is contained in:
Laurent Clouet
2015-04-05 22:03:45 +01:00
parent eb0f762625
commit a1f1399e23

View File

@@ -177,7 +177,7 @@ public class SettingsLoader {
config.setPassword(password); config.setPassword(password);
} }
if (config.getComputeMethod() == null && computeMethod != null) { if ((config.getComputeMethod() == null && computeMethod != null) || (config.getComputeMethod() != ComputeType.valueOf(computeMethod) && computeMethod != null)) {
config.setComputeMethod(ComputeType.valueOf(computeMethod)); config.setComputeMethod(ComputeType.valueOf(computeMethod));
} }
if (config.getGPUDevice() == null && gpu != null) { if (config.getGPUDevice() == null && gpu != null) {