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,11 +2790,7 @@ public class GUI extends Observable {
* New value * New value
*/ */
public static void setExternalToolsSetting(String name, String newVal) { public static void setExternalToolsSetting(String name, String newVal) {
if (specifiedContikiPath != null && "PATH_CONTIKI".equals(name)) { currentExternalToolsSettings.setProperty(name, newVal);
specifiedContikiPath = newVal;
} else {
currentExternalToolsSettings.setProperty(name, newVal);
}
} }
/** /**