- don't jump to top after bool toggling
This commit is contained in:
parent
91a367379c
commit
6465141ac2
1 changed files with 4 additions and 4 deletions
|
@ -168,13 +168,13 @@ void PropertyList::handle_select(puObject *list_box)
|
||||||
// it is a regular property
|
// it is a regular property
|
||||||
if (child->getType() == SGPropertyNode::BOOL && mod_ctrl) {
|
if (child->getType() == SGPropertyNode::BOOL && mod_ctrl) {
|
||||||
child->setBoolValue(!child->getBoolValue());
|
child->setBoolValue(!child->getBoolValue());
|
||||||
prop_list->update();
|
prop_list->update(true);
|
||||||
} else
|
} else
|
||||||
prop_list->publish(child);
|
prop_list->publish(child);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// the user clicked on blank screen
|
// the user clicked on blank screen
|
||||||
prop_list->update();
|
prop_list->update(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -182,7 +182,6 @@ void PropertyList::handle_select(puObject *list_box)
|
||||||
void PropertyList::update(bool restore_pos)
|
void PropertyList::update(bool restore_pos)
|
||||||
{
|
{
|
||||||
int pi;
|
int pi;
|
||||||
int i;
|
|
||||||
|
|
||||||
delete_arrays();
|
delete_arrays();
|
||||||
_num_entries = (int)_curr->nChildren();
|
_num_entries = (int)_curr->nChildren();
|
||||||
|
@ -207,6 +206,7 @@ void PropertyList::update(bool restore_pos)
|
||||||
dotFiles = true;
|
dotFiles = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int i;
|
||||||
_num_children = _curr->nChildren();
|
_num_children = _curr->nChildren();
|
||||||
_children = new SGPropertyNode_ptr[_num_children];
|
_children = new SGPropertyNode_ptr[_num_children];
|
||||||
for (i = 0; i < _num_children; i++)
|
for (i = 0; i < _num_children; i++)
|
||||||
|
@ -302,7 +302,7 @@ try {
|
||||||
else
|
else
|
||||||
throw stdString("node doesn't exist");
|
throw stdString("node doesn't exist");
|
||||||
} catch (const stdString& m) {
|
} catch (const stdString& m) {
|
||||||
SG_LOG(SG_GENERAL, SG_DEBUG, "property-list node `" << s << "': "<< m);
|
SG_LOG(SG_GENERAL, SG_DEBUG, "property-list node `" << s << "': " << m);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue