Yes, I will be obliged to check the value to avoid the instrument fix in 
some cases. But as I discover this problem I wanted to try a solution 
for every dialog-apply, to make the listeners work as expected, for 
future uses, not only the failures system I'm trying to write.

If the fix is rejected, that's not a problem for me, but I think we let 
a problem that can go out again some day...

regards
seb

Csaba Halász a écrit :
> On Sat, Feb 21, 2009 at 11:32 AM, Melchior FRANZ <mfr...@aon.at> wrote:
>>        setlistener(f ~ "/serviceable", failure[f], 0, 0);
>>
>>  0 ... trigger on change only
> 
> As I wrote in my other email, this doesn't work as expected. The
> listener is triggered initially even if the property doesn't change.
> 
> Sébastien, I think your listeners should check the value of the
> property. It might very well happen that a failed instrument is later
> fixed, can't it? So the listeners would get triggered again and you'd
> have to differentiate between failure and fixing. This would also make
> the dialog-apply problem go away.
> 

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to