unselect entry after editing process has been finished
This commit is contained in:
parent
7512553a9a
commit
865a1c037e
1 changed files with 5 additions and 2 deletions
|
@ -89,6 +89,7 @@ void prop_pickerRefresh()
|
|||
}
|
||||
fgPropPicker *me = (fgPropPicker *)PP_widget -> getUserData();
|
||||
me -> find_props( true );
|
||||
me -> clrValue();
|
||||
}
|
||||
|
||||
void prop_editOpen( const char * name, const char * value, char * proppath )
|
||||
|
@ -284,9 +285,10 @@ void fgPropPicker::handle_select ( puObject* list_box )
|
|||
return ;
|
||||
}
|
||||
|
||||
if (child->getType() == SGPropertyNode::BOOL && (fgGetKeyModifiers() & KEYMOD_CTRL))
|
||||
if (child->getType() == SGPropertyNode::BOOL && (fgGetKeyModifiers() & KEYMOD_CTRL)) {
|
||||
child->setBoolValue(!child->getBoolValue());
|
||||
else
|
||||
prop_pickerRefresh();
|
||||
} else
|
||||
prop_editOpen(child->getName(), child->getStringValue(), dst);
|
||||
}
|
||||
else
|
||||
|
@ -557,6 +559,7 @@ void fgPropPicker::valueChanged(SGPropertyNode *nd)
|
|||
void fgPropEdit::fgPropEditHandleCancel ( puObject* b )
|
||||
{
|
||||
fgPropEdit* prop_edit = (fgPropEdit*) b -> getUserData () ;
|
||||
prop_pickerRefresh();
|
||||
FG_POP_PUI_DIALOG( prop_edit );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue