1
0
Fork 0

bugfix: enable globalwx METAR textfield on --metar

The METAR input field is now enabled when the global weather
dialog is opened and fg was started with --metar=something
This commit is contained in:
Torsten Dreyer 2010-12-22 22:54:49 +01:00
parent 13af11ae1f
commit c41e11e80b

View file

@ -1601,7 +1601,7 @@
combo.getChild("value", i, 1).setValue(scenarios[i].getNode("name").getValue()); combo.getChild("value", i, 1).setValue(scenarios[i].getNode("name").getValue());
} }
me.scenarioListenerId = setlistener( me.base ~ "/source-selection", func(n) { me.scenarioListener(n); } ); me.scenarioListenerId = setlistener( me.base ~ "/source-selection", func(n) { me.scenarioListener(n); }, 1, 1 );
me.metarListenerId = setlistener( "environment/metar/valid", func(n) { me.metarListener(n); }, 1, 1 ); me.metarListenerId = setlistener( "environment/metar/valid", func(n) { me.metarListener(n); }, 1, 1 );
}, },