empty names aren't names
This commit is contained in:
parent
ce8e28f1f5
commit
5b1dd6c8ae
1 changed files with 6 additions and 0 deletions
|
@ -382,6 +382,9 @@ FGDialog::~FGDialog ()
|
|||
void
|
||||
FGDialog::updateValues (const char * objectName)
|
||||
{
|
||||
if (objectName && !objectName[0])
|
||||
objectName = 0;
|
||||
|
||||
for (unsigned int i = 0; i < _propertyObjects.size(); i++) {
|
||||
const string &name = _propertyObjects[i]->name;
|
||||
if (objectName && name != objectName)
|
||||
|
@ -395,6 +398,9 @@ FGDialog::updateValues (const char * objectName)
|
|||
void
|
||||
FGDialog::applyValues (const char * objectName)
|
||||
{
|
||||
if (objectName && !objectName[0])
|
||||
objectName = 0;
|
||||
|
||||
for (unsigned int i = 0; i < _propertyObjects.size(); i++) {
|
||||
const string &name = _propertyObjects[i]->name;
|
||||
if (objectName && name != objectName)
|
||||
|
|
Loading…
Reference in a new issue