From 7f3cd89be551f21f748c65d1a13bce879f6b051b Mon Sep 17 00:00:00 2001 From: mfranz Date: Thu, 3 Nov 2005 20:15:05 +0000 Subject: [PATCH] return correct input object --- src/GUI/dialog.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/GUI/dialog.cxx b/src/GUI/dialog.cxx index 35e573d91..f9f324e58 100644 --- a/src/GUI/dialog.cxx +++ b/src/GUI/dialog.cxx @@ -81,11 +81,12 @@ puObject *fgPopup::getKeyObject(puObject *object, int key) puObject *fgPopup::getActiveInputField(puObject *object) { + puObject *ret; if(object->getType() & PUCLASS_GROUP) for (puObject *obj = ((puGroup *)object)->getFirstChild(); obj; obj = obj->getNextObject()) - if (getActiveInputField(obj)) - return obj; + if ((ret = getActiveInputField(obj))) + return ret; if (object->getType() & PUCLASS_INPUT && ((puInput *)object)->isAcceptingInput()) return object;