Bug 1122, transponder ident.
Don't fall through to digit-decoding on ident button release.
This commit is contained in:
parent
16d1c47664
commit
e2a05c64b5
1 changed files with 8 additions and 4 deletions
|
@ -224,10 +224,14 @@ static int modifyCodeDigit(int code, int index, int digitValue)
|
|||
void Transponder::valueChanged(SGPropertyNode *prop)
|
||||
{
|
||||
// Ident button pressed
|
||||
if ((prop == _identBtn_node) && prop->getBoolValue()) {
|
||||
_identTime = 0.0;
|
||||
_ident_node->setBoolValue(true);
|
||||
_identMode = true;
|
||||
if (prop == _identBtn_node) {
|
||||
if (prop->getBoolValue()) {
|
||||
_identTime = 0.0;
|
||||
_ident_node->setBoolValue(true);
|
||||
_identMode = true;
|
||||
} else {
|
||||
// don't cancel state on release
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue