Cooja: Fix command line override of ContikiPath

Without the fix the command line parameter was overwritten by the simulation configuration.
This commit is contained in:
Moritz 'Morty' Strübe 2012-10-30 11:42:01 +01:00
parent 32aa70e5cf
commit 64c0b9c241

View file

@ -2790,12 +2790,8 @@ public class GUI extends Observable {
* New value
*/
public static void setExternalToolsSetting(String name, String newVal) {
if (specifiedContikiPath != null && "PATH_CONTIKI".equals(name)) {
specifiedContikiPath = newVal;
} else {
currentExternalToolsSettings.setProperty(name, newVal);
}
}
/**
* Load external tools settings from default file.